lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: patch - DEFAULT_ vars in IndexWriter non-final and DEFAULT for useCompoundFile
Date Fri, 25 Feb 2005 16:57:04 GMT
Wolf Siberski wrote:
> So, if anything at all, I would rather opt for making these constants
> private :-).

I agree.  In general, fields should either be final, or private with 
accessor methods.  So, we could change this to:

private static int defaultMergeFactor =
   Integer.parseInt(System.getProperty("org.apache.lucene.mergeFactor",
                                       "10"));

public static int getDefaultMergeFactor() {
   return mergeFactor;
}

public static void setDefaultMergeFactor(int mergeFactor) {
   defaultMergeFactor = mergeFactor;
}

Doug

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


Mime
View raw message