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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to