lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan.S (JIRA)" <>
Subject [jira] Created: (LUCENE-1439) Inconsistent API
Date Fri, 07 Nov 2008 12:34:45 GMT
Inconsistent API 

                 Key: LUCENE-1439
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 3.0
         Environment: any
            Reporter: Ivan.S

The API of Lucene is totally inconsistent:

There are a lot of containers which don't implement an interface which indicates this fact
(for pre-java-1.5 Lucene it could be Collection, for post-ajva-1.5 Lucene it could be more
general Iterable)

 IndexSearcher: "int maxDoc()" and "doc(int i)"

There are a lot of classes having non-final public accessible fields.

Some methods which return values are named something() others are named getSomething()

Best one is: Fieldable:
without get: String stringValue(), Reader readerValue(), byte[] binaryValue(), ...
with get: byte[] getBinaryValue(), int getBinaryLength(), ...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message