Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 83244 invoked from network); 11 Dec 2001 05:35:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Dec 2001 05:35:42 -0000 Received: (qmail 28834 invoked by uid 97); 11 Dec 2001 05:35:53 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@jakarta.apache.org Received: (qmail 28791 invoked by uid 97); 11 Dec 2001 05:35:52 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 28780 invoked from network); 11 Dec 2001 05:35:51 -0000 From: "Maik Schreiber" To: Subject: [PATCH] Jikes warns in pedantic mode Date: Tue, 11 Dec 2001 06:36:38 +0100 Message-ID: <000001c18205$cea4f8d0$0100a8c0@wolverine> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0001_01C1820E.306C6E10" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0001_01C1820E.306C6E10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The applied patch fixes some warnings when using Jikes in pedantic mode. -- Maik Schreiber IQ Computing - http://www.iq-computing.de mailto: info@iq-computing.de ------=_NextPart_000_0001_01C1820E.306C6E10 Content-Type: application/octet-stream; name="jikes.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="jikes.diff" Index: src/java/org/apache/lucene/document/DateField.java=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: = /export/cvsroot/lucene/src/java/org/apache/lucene/document/DateField.java= ,v=0A= retrieving revision 1.1.1.1=0A= diff -u -r1.1.1.1 DateField.java=0A= --- src/java/org/apache/lucene/document/DateField.java 2001/12/11 = 05:14:07 1.1.1.1=0A= +++ src/java/org/apache/lucene/document/DateField.java 2001/12/11 = 05:30:39=0A= @@ -60,7 +60,7 @@=0A= * strings are structured so that lexicographic sorting orders by = date. This=0A= * makes them suitable for use as field values and search terms. */=0A= public class DateField {=0A= - private DateField() {};=0A= + private DateField() {}=0A= =0A= // make date strings long enough to last a millenium=0A= private static int DATE_LEN =3D Long.toString(1000L*365*24*60*60*1000,=0A= Index: src/java/org/apache/lucene/index/IndexReader.java=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: = /export/cvsroot/lucene/src/java/org/apache/lucene/index/IndexReader.java,= v=0A= retrieving revision 1.1.1.1=0A= diff -u -r1.1.1.1 IndexReader.java=0A= --- src/java/org/apache/lucene/index/IndexReader.java 2001/12/11 = 05:14:07 1.1.1.1=0A= +++ src/java/org/apache/lucene/index/IndexReader.java 2001/12/11 05:30:17=0A= @@ -75,7 +75,7 @@=0A= rely on a given document having the same number between sessions. */=0A= =0A= abstract public class IndexReader {=0A= - protected IndexReader() {};=0A= + protected IndexReader() {}=0A= =0A= /** Returns an IndexReader reading the index in an FSDirectory in the = named=0A= path. */=0A= Index: src/java/org/apache/lucene/index/TermDocs.java=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: = /export/cvsroot/lucene/src/java/org/apache/lucene/index/TermDocs.java,v=0A= retrieving revision 1.1.1.1=0A= diff -u -r1.1.1.1 TermDocs.java=0A= --- src/java/org/apache/lucene/index/TermDocs.java 2001/12/11 05:14:07 = 1.1.1.1=0A= +++ src/java/org/apache/lucene/index/TermDocs.java 2001/12/11 05:29:01=0A= @@ -69,15 +69,15 @@=0A= public interface TermDocs {=0A= /** Returns the current document number.

This is invalid until = {@link=0A= #next()} is called for the first time.*/=0A= - public int doc();=0A= + int doc();=0A= =0A= /** Returns the frequency of the term within the current document. =

This=0A= is invalid until {@link #next()} is called for the first time.*/=0A= - public int freq();=0A= + int freq();=0A= =0A= /** Moves to the next pair in the enumeration.

Returns true iff = there is=0A= such a next pair in the enumeration. */=0A= - public boolean next() throws IOException;=0A= + boolean next() throws IOException;=0A= =0A= /** Attempts to read multiple entries from the enumeration, up to = length of=0A= * docs. Document numbers are stored in docs, and term=0A= @@ -86,7 +86,7 @@=0A= *=0A= *

Returns the number of entries read. Zero is only returned when = the=0A= * stream has been exhausted. */=0A= - public int read(int[] docs, int[] freqs) throws IOException;=0A= + int read(int[] docs, int[] freqs) throws IOException;=0A= =0A= /** Skips entries to the first beyond the current whose document = number is=0A= * greater than or equal to target.

Returns true iff there = is such=0A= @@ -101,10 +101,10 @@=0A= * =0A= * Some implementations are considerably more efficient than that.=0A= */=0A= - public boolean skipTo(int target) throws IOException;=0A= + boolean skipTo(int target) throws IOException;=0A= =0A= /** Frees associated resources. */=0A= - public void close() throws IOException;=0A= + void close() throws IOException;=0A= }=0A= =0A= =0A= Index: src/java/org/apache/lucene/index/TermPositions.java=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: = /export/cvsroot/lucene/src/java/org/apache/lucene/index/TermPositions.jav= a,v=0A= retrieving revision 1.1.1.1=0A= diff -u -r1.1.1.1 TermPositions.java=0A= --- src/java/org/apache/lucene/index/TermPositions.java 2001/12/11 = 05:14:07 1.1.1.1=0A= +++ src/java/org/apache/lucene/index/TermPositions.java 2001/12/11 = 05:29:34=0A= @@ -71,5 +71,5 @@=0A= without calling {@link #next()}

This is=0A= invalid until {@link #next()} is called for=0A= the first time.*/=0A= - public int nextPosition() throws IOException;=0A= + int nextPosition() throws IOException;=0A= } =0A= ------=_NextPart_000_0001_01C1820E.306C6E10 Content-Type: text/plain; charset=us-ascii -- To unsubscribe, e-mail: For additional commands, e-mail: ------=_NextPart_000_0001_01C1820E.306C6E10--