changed configuration value factory method to set a default for booleans by default. The normal pattern is to obtain a BooleanValue and then set the default to 'true' when desired; implicitly, this means that 'false' is the default otherwise. This change makes that explicit.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2006-07-31 23:13:00 +00:00
parent a95e7007cf
commit 72398bcea0
1 changed files with 1 additions and 0 deletions

View File

@ -931,6 +931,7 @@ public class ConfigurationImpl
public BooleanValue addBoolean(String property) { public BooleanValue addBoolean(String property) {
BooleanValue val = new BooleanValue(property); BooleanValue val = new BooleanValue(property);
addValue(val); addValue(val);
val.setDefault("false");
return val; return val;
} }