You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by tv...@apache.org on 2018/01/18 15:43:58 UTC

[10/50] tomee git commit: Refactoring / clean up

Refactoring / clean up


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

Branch: refs/heads/master
Commit: 9797610e138bfd415500dafa33d7c2e120a5ff98
Parents: 21687ad
Author: Ivan Junckes Filho <iv...@gmail.com>
Authored: Fri Dec 15 11:39:32 2017 -0200
Committer: Ivan Junckes Filho <iv...@gmail.com>
Committed: Fri Dec 15 11:39:32 2017 -0200

----------------------------------------------------------------------
 .../java/org/apache/openejb/core/instance/InstanceManager.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/9797610e/container/openejb-core/src/main/java/org/apache/openejb/core/instance/InstanceManager.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/core/instance/InstanceManager.java b/container/openejb-core/src/main/java/org/apache/openejb/core/instance/InstanceManager.java
index 84086b2..303b92e 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/core/instance/InstanceManager.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/core/instance/InstanceManager.java
@@ -141,7 +141,7 @@ public abstract class InstanceManager {
             final ThreadContext ctx = new ThreadContext(beanContext, null);
             final ThreadContext oldCallContext = ThreadContext.enter(ctx);
             try {
-                return createInstance(ctx, ctx.getBeanContext());
+                return createInstance(ctx.getBeanContext());
             } catch (final OpenEJBException e) {
                 logger.error("Unable to fill pool: for deployment '" + beanContext.getDeploymentID() + "'", e);
             } finally {
@@ -211,13 +211,13 @@ public abstract class InstanceManager {
         }
 
         if (null == instance) {
-            instance = createInstance(callContext, beanContext);
+            instance = createInstance(beanContext);
         }
 
         return instance;
     }
 
-    private Instance createInstance(final ThreadContext callContext, final BeanContext beanContext) throws ApplicationException {
+    private Instance createInstance(final BeanContext beanContext) throws ApplicationException {
         try {
             final InstanceContext context = beanContext.newInstance();
             return new Instance(context.getBean(), context.getInterceptors(), context.getCreationalContext());