mirror of
https://github.com/apache/openjpa.git
synced 2025-02-23 10:57:48 +00:00
OPENJPA-498. Resolve this by not removing if the prop is not set; the prop in question is only ever set internally anyways when EMF pooling is enabled.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@613332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f797f0226
commit
92d1334e52
@ -656,8 +656,11 @@ public class Configurations {
|
|||||||
public static Object removeProperty(String partialKey, Map props) {
|
public static Object removeProperty(String partialKey, Map props) {
|
||||||
if (partialKey == null || props == null || props.isEmpty())
|
if (partialKey == null || props == null || props.isEmpty())
|
||||||
return null;
|
return null;
|
||||||
return props.remove(ProductDerivations.getConfigurationKey(partialKey,
|
if (containsProperty(partialKey, props))
|
||||||
props));
|
return props.remove(ProductDerivations.getConfigurationKey(
|
||||||
|
partialKey, props));
|
||||||
|
else
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user