You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/10/26 08:37:46 UTC

svn commit: r1189041 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/src/java/org/apache/lucene/util/FixedBitSet.java

Author: uschindler
Date: Wed Oct 26 06:37:45 2011
New Revision: 1189041

URL: http://svn.apache.org/viewvc?rev=1189041&view=rev
Log:
Add missing Javadocs

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/FixedBitSet.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/FixedBitSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/FixedBitSet.java?rev=1189041&r1=1189040&r2=1189041&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/FixedBitSet.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/FixedBitSet.java Wed Oct 26 06:37:45 2011
@@ -140,7 +140,7 @@ public final class FixedBitSet extends D
   public int nextSetBit(int index) {
     assert index >= 0 && index < numBits;
     int i = index >> 6;
-    int subIndex = index & 0x3f;      // index within the word
+    final int subIndex = index & 0x3f;      // index within the word
     long word = bits[i] >> subIndex;  // skip all the bits to the right of index
 
     if (word!=0) {
@@ -157,6 +157,9 @@ public final class FixedBitSet extends D
     return -1;
   }
 
+  /** Returns the index of the last set bit before or on the index specified.
+   *  -1 is returned if there are no more set bits.
+   */
   public int prevSetBit(int index) {
     assert index >= 0 && index < numBits: "index=" + index + " numBits=" + numBits;
     int i = index >> 6;