Wrong logic in setting default remote commit provider

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2011-12-27 17:12:04 +00:00
parent 6bc2b5671d
commit 857abde46c

View File

@ -702,9 +702,9 @@ public class PersistenceProductDerivation
String dc = oconf.getDataCache();
String rcp = oconf.getRemoteCommitProvider();
// If the datacache is set and is something other than false
if (dc != null && dc.equals("false") == false) {
if (dc != null && !"false".equals(dc)) {
// If RCP is null or empty, set it to sjvm.
if (rcp == null || (rcp != null && rcp.equals("") == false)) {
if (rcp == null || "".equals(rcp)) {
oconf.setRemoteCommitProvider("sjvm");
}
}