lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Lucene Search Applet
Date Mon, 23 Aug 2004 15:24:18 GMT

On Aug 23, 2004, at 10:48 AM, Stephane James Vaucher wrote:
> I haven't used it, and I'm a little confused from the code:
> /** ...
>  * <p>If the system property 'disableLuceneLocks' has the String value 
> of
>  * "true", lock creation will be disabled.
>  */
> public final class FSDirectory extends Directory {
>   private static final boolean DISABLE_LOCKS =
>       Boolean.getBoolean("disableLuceneLocks") || Constants.JAVA_1_1;
> ...
>
> I don't see a System.getProperty(String).

:)

check the javadocs for Boolean.getBoolean()

It's by far one on of the dumbest and most confusing API's ever!  
(basically this does a System.getProperty("disableLuceneLocks") and 
converts it to a boolean.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message