mirror of https://github.com/apache/openjpa.git
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:
parent
a95e7007cf
commit
72398bcea0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue