tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject [1/3] tomee git commit: Uses Boolean.valueof instaed of new instance
Date Tue, 20 Nov 2018 17:05:42 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 2f903ec62 -> f032a7f91


Uses Boolean.valueof instaed of new instance


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/c520c456
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/c520c456
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/c520c456

Branch: refs/heads/master
Commit: c520c456dad792dbc2fed65b509b358425e10ec7
Parents: 51a07de
Author: Otavio Santana <otaviopolianasantana@gmail.com>
Authored: Tue Nov 20 09:42:15 2018 -0200
Committer: Otavio Santana <otaviopolianasantana@gmail.com>
Committed: Tue Nov 20 09:42:15 2018 -0200

----------------------------------------------------------------------
 .../apache/openejb/core/singleton/SingletonEjbObjectHandler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/c520c456/container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonEjbObjectHandler.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonEjbObjectHandler.java
b/container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonEjbObjectHandler.java
index 7b939e4..8fbd909 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonEjbObjectHandler.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/core/singleton/SingletonEjbObjectHandler.java
@@ -52,7 +52,7 @@ public class SingletonEjbObjectHandler extends EjbObjectProxyHandler {
     protected Object isIdentical(final Method method, final Object[] args, final Object proxy)
throws Throwable {
         try {
             final EjbObjectProxyHandler handler = (EjbObjectProxyHandler) ProxyManager.getInvocationHandler(args[0]);
-            return new Boolean(deploymentID.equals(handler.deploymentID)); //NOPMD
+            return Boolean.valueOf(deploymentID.equals(handler.deploymentID)); //NOPMD
         } catch (final Throwable t) {
             return Boolean.FALSE;
         }


Mime
View raw message