You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ot...@apache.org on 2001/12/25 20:27:04 UTC
cvs commit: jakarta-lucene/src/java/org/apache/lucene/index IndexReader.java TermDocs.java TermPositions.java
otis 01/12/25 11:27:04
Modified: src/java/org/apache/lucene/document DateField.java
src/java/org/apache/lucene/index IndexReader.java
TermDocs.java TermPositions.java
Log:
- Applied a patch that silences Jikes' pedantic mode warnings, submitted
by Maik Schreiber.
Submitted by: Maik Schreiber
Revision Changes Path
1.2 +1 -1 jakarta-lucene/src/java/org/apache/lucene/document/DateField.java
Index: DateField.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/document/DateField.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DateField.java 2001/09/18 16:29:51 1.1
+++ DateField.java 2001/12/25 19:27:04 1.2
@@ -60,7 +60,7 @@
* strings are structured so that lexicographic sorting orders by date. This
* makes them suitable for use as field values and search terms. */
public class DateField {
- private DateField() {};
+ private DateField() {}
// make date strings long enough to last a millenium
private static int DATE_LEN = Long.toString(1000L*365*24*60*60*1000,
1.4 +1 -1 jakarta-lucene/src/java/org/apache/lucene/index/IndexReader.java
Index: IndexReader.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/IndexReader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IndexReader.java 2001/12/25 19:14:40 1.3
+++ IndexReader.java 2001/12/25 19:27:04 1.4
@@ -75,7 +75,7 @@
rely on a given document having the same number between sessions. */
abstract public class IndexReader {
- protected IndexReader() {};
+ protected IndexReader() {}
/** Returns an IndexReader reading the index in an FSDirectory in the named
path. */
1.2 +6 -6 jakarta-lucene/src/java/org/apache/lucene/index/TermDocs.java
Index: TermDocs.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/TermDocs.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TermDocs.java 2001/09/18 16:29:54 1.1
+++ TermDocs.java 2001/12/25 19:27:04 1.2
@@ -69,15 +69,15 @@
public interface TermDocs {
/** Returns the current document number. <p> This is invalid until {@link
#next()} is called for the first time.*/
- public int doc();
+ int doc();
/** Returns the frequency of the term within the current document. <p> This
is invalid until {@link #next()} is called for the first time.*/
- public int freq();
+ int freq();
/** Moves to the next pair in the enumeration. <p> Returns true iff there is
such a next pair in the enumeration. */
- public boolean next() throws IOException;
+ boolean next() throws IOException;
/** Attempts to read multiple entries from the enumeration, up to length of
* <i>docs</i>. Document numbers are stored in <i>docs</i>, and term
@@ -86,7 +86,7 @@
*
* <p>Returns the number of entries read. Zero is only returned when the
* stream has been exhausted. */
- public int read(int[] docs, int[] freqs) throws IOException;
+ int read(int[] docs, int[] freqs) throws IOException;
/** Skips entries to the first beyond the current whose document number is
* greater than or equal to <i>target</i>. <p>Returns true iff there is such
@@ -101,10 +101,10 @@
* </pre>
* Some implementations are considerably more efficient than that.
*/
- public boolean skipTo(int target) throws IOException;
+ boolean skipTo(int target) throws IOException;
/** Frees associated resources. */
- public void close() throws IOException;
+ void close() throws IOException;
}
1.2 +1 -1 jakarta-lucene/src/java/org/apache/lucene/index/TermPositions.java
Index: TermPositions.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/TermPositions.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TermPositions.java 2001/09/18 16:29:55 1.1
+++ TermPositions.java 2001/12/25 19:27:04 1.2
@@ -71,5 +71,5 @@
without calling {@link #next()}<p> This is
invalid until {@link #next()} is called for
the first time.*/
- public int nextPosition() throws IOException;
+ int nextPosition() throws IOException;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>