tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject tomee git commit: Revert "make client security a thread local based object"
Date Tue, 11 Oct 2016 00:36:03 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 2998e4adc -> 819b00bce


Revert "make client security a thread local based object"

This reverts commit 2998e4adc9bd376a97bd9f7f121d18ba574f462c.


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

Branch: refs/heads/tomee-1.7.x
Commit: 819b00bcecfaa5f130e7475f0129f5c39dec2d7e
Parents: 2998e4a
Author: Jonathan Gallimore <jon@jrg.me.uk>
Authored: Tue Oct 11 01:12:46 2016 +0100
Committer: Jonathan Gallimore <jon@jrg.me.uk>
Committed: Tue Oct 11 01:12:46 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/tomee/blob/819b00bc/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/ClientSecurity.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/ClientSecurity.java
b/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/ClientSecurity.java
index cbcfe4b..b154856 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/ClientSecurity.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/core/ivm/ClientSecurity.java
@@ -22,13 +22,13 @@ package org.apache.openejb.core.ivm;
  */
 public class ClientSecurity {
 
-    private static ThreadLocal<Object> clientIdentity = new ThreadLocal<Object>();
+    private static Object clientIdentity;
 
     public static Object getIdentity() {
-        return clientIdentity.get();
+        return clientIdentity;
     }
 
     public static void setIdentity(final Object clientIdentity) {
-        ClientSecurity.clientIdentity.set(clientIdentity);
+        ClientSecurity.clientIdentity = clientIdentity;
     }
 }


Mime
View raw message