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:36:38 UTC

svn commit: r1189039 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java

Author: uschindler
Date: Wed Oct 26 06:36:37 2011
New Revision: 1189039

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

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java?rev=1189039&r1=1189038&r2=1189039&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/FixedBitSet.java Wed Oct 26 06:36:37 2011
@@ -146,7 +146,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) {
@@ -163,6 +163,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;