Repository: tomee Updated Branches: refs/heads/tomee-1.7.x 3c2a2e533 -> 81c8f3af5
PMD fixes Project: http://git-wip-us.apache.org/repos/asf/tomee/repo Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/81c8f3af Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/81c8f3af Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/81c8f3af Branch: refs/heads/tomee-1.7.x Commit: 81c8f3af56cd95f468d4c39230ec6adaff4f3eda Parents: 3c2a2e5 Author: Jonathan Gallimore <[email protected]> Authored: Fri Jan 6 22:05:34 2017 +0000 Committer: Jonathan Gallimore <[email protected]> Committed: Fri Jan 6 22:05:34 2017 +0000 ---------------------------------------------------------------------- .../openejb/core/stateless/StatelessInstanceManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tomee/blob/81c8f3af/container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessInstanceManager.java ---------------------------------------------------------------------- diff --git a/container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessInstanceManager.java b/container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessInstanceManager.java index 6d7f86e..528540a 100644 --- a/container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessInstanceManager.java +++ b/container/openejb-core/src/main/java/org/apache/openejb/core/stateless/StatelessInstanceManager.java @@ -58,7 +58,6 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.rmi.RemoteException; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -148,7 +147,7 @@ public class StatelessInstanceManager { 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 { @@ -196,13 +195,13 @@ public class StatelessInstanceManager { } 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());
