lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject svn commit: r495186 - /lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
Date Thu, 11 Jan 2007 10:51:19 GMT
Author: otis
Date: Thu Jan 11 02:51:19 2007
New Revision: 495186

URL: http://svn.apache.org/viewvc?view=rev&rev=495186
Log:
- Cosmetics

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java?view=diff&rev=495186&r1=495185&r2=495186
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java Thu Jan 11 02:51:19
2007
@@ -296,7 +296,6 @@
       prefix = ".s";
       return IndexFileNames.fileNameFromGeneration(name, prefix + number, gen);
     }
-    
 
     if (withNrm()) {
       // case 2: lockless (or nrm file exists) - single file for all norms 
@@ -338,7 +337,7 @@
   }
   
   /**
-   * Returns true iff this segment stores filed norms in a single .nrm file.
+   * Returns true iff this segment stores field norms in a single .nrm file.
    */
   private boolean withNrm () throws IOException {
     if (withNrm == -1) {
@@ -359,7 +358,6 @@
       if (d!=dir && d!=null) {
         d.close();
       }
-      
     }
   }
 
@@ -375,7 +373,7 @@
       output.writeInt(-1);
     } else {
       output.writeInt(normGen.length);
-      for(int j=0;j<normGen.length;j++) {
+      for(int j = 0; j < normGen.length; j++) {
         output.writeLong(normGen[j]);
       }
     }



Mime
View raw message