Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

- Removed tabs.

Otis Gospodnetic1381c246056c
diff --git a/src/java/org/apache/lucene/index/SegmentInfos.java b/src/java/org/apache/lucene/index/SegmentInfos.java
index cc29225c25c..21836bbf2da 100644
--- a/src/java/org/apache/lucene/index/SegmentInfos.java
+++ b/src/java/org/apache/lucene/index/SegmentInfos.java
@@ -62,7 +62,7 @@ import org.apache.lucene.store.OutputStream;
final class SegmentInfos extends Vector {
public int counter = 0; // used to name new segments
-
+
public final SegmentInfo info(int i) {
return (SegmentInfo)elementAt(i);
}
@@ -70,11 +70,11 @@ final class SegmentInfos extends Vector {
public final void read(Directory directory) throws IOException {
InputStream input = directory.openFile("segments");
try {
- counter = input.readInt(); // read counter
+ counter = input.readInt(); // read counter
for (int i = input.readInt(); i > 0; i--) { // read segmentInfos
- SegmentInfo si = new SegmentInfo(input.readString(), input.readInt(),
- directory);
- addElement(si);
+ SegmentInfo si = new SegmentInfo(input.readString(), input.readInt(),
+ directory);
+ addElement(si);
}
} finally {
input.close();
@@ -87,9 +87,9 @@ final class SegmentInfos extends Vector {
output.writeInt(counter); // write counter
output.writeInt(size()); // write infos
for (int i = 0; i < size(); i++) {
- SegmentInfo si = info(i);
- output.writeString(si.name);
- output.writeInt(si.docCount);
+ SegmentInfo si = info(i);
+ output.writeString(si.name);
+ output.writeInt(si.docCount);
}
} finally {
output.close();