You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2016/07/11 22:25:57 UTC
tomee git commit: PMD
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x 2540c683d -> 7ec80b94c
PMD
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/7ec80b94
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/7ec80b94
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/7ec80b94
Branch: refs/heads/tomee-1.7.x
Commit: 7ec80b94c34217edc53c64dd7081efe946ebdd3e
Parents: 2540c68
Author: AndyGee <an...@gmx.de>
Authored: Tue Jul 12 00:25:37 2016 +0200
Committer: AndyGee <an...@gmx.de>
Committed: Tue Jul 12 00:25:37 2016 +0200
----------------------------------------------------------------------
.../openejb/resource/GeronimoConnectionManagerFactory.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/7ec80b94/container/openejb-core/src/main/java/org/apache/openejb/resource/GeronimoConnectionManagerFactory.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/resource/GeronimoConnectionManagerFactory.java b/container/openejb-core/src/main/java/org/apache/openejb/resource/GeronimoConnectionManagerFactory.java
index f2e83a8..33a5298 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/resource/GeronimoConnectionManagerFactory.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/resource/GeronimoConnectionManagerFactory.java
@@ -78,7 +78,7 @@ public class GeronimoConnectionManagerFactory {
private int poolMaxSize = 10;
private int poolMinSize;
private boolean allConnectionsEqual = true;
- private boolean assumeOneMatch = false;
+ private boolean assumeOneMatch;
private int connectionMaxWaitMilliseconds = 5000;
private int connectionMaxIdleMinutes = 15;
private ManagedConnectionFactory mcf;
@@ -438,9 +438,9 @@ public class GeronimoConnectionManagerFactory {
this.lock = foundLock;
Object foundPool = null;
- if (current instanceof AbstractSinglePoolConnectionInterceptor) {
+ if (AbstractSinglePoolConnectionInterceptor.class.isInstance(current)) {
foundPool = Reflections.get(current, "pool");
- } else if (current instanceof MultiPoolConnectionInterceptor) {
+ } else if (MultiPoolConnectionInterceptor.class.isInstance(current)) {
log.warn("validation on stack " + stack + " not supported");
}
this.pool = foundPool;