mirror of
https://github.com/apache/openjpa.git
synced 2025-03-06 08:29:08 +00:00
OPENJPA-428: Revert Changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f75a9b4375
commit
a3e0a52f10
@ -665,7 +665,6 @@ public class ConfigurationImpl
|
||||
// <prefix>.properties System property; remove that property so we
|
||||
// we don't warn about it
|
||||
Configurations.removeProperty("properties", remaining);
|
||||
Configurations.removeProperty("Id", remaining, map);
|
||||
|
||||
// now warn if there are any remaining properties that there
|
||||
// is an unhandled prop, and remove the unknown properties
|
||||
|
@ -693,16 +693,10 @@ public class Configurations {
|
||||
public static Object removeProperty(String partialKey, Map props) {
|
||||
if (partialKey == null || props == null || props.isEmpty())
|
||||
return null;
|
||||
if (containsProperty(partialKey, props))
|
||||
return props.remove(ProductDerivations.getConfigurationKey(partialKey, props));
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void removeProperty(String partialKey, Map<?,?> remaining, Map<?,?> props) {
|
||||
if (removeProperty(partialKey, remaining) != null) {
|
||||
removeProperty(partialKey, props);
|
||||
}
|
||||
if (containsProperty(partialKey, props))
|
||||
return props.remove(ProductDerivations.getConfigurationKey(partialKey, props));
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user