shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Kemnade (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SHIRO-498) ThreadLocal should not be created when not necessary
Date Wed, 30 Apr 2014 14:07:14 GMT
Jochen Kemnade created SHIRO-498:
------------------------------------

             Summary: ThreadLocal should not be created when not necessary
                 Key: SHIRO-498
                 URL: https://issues.apache.org/jira/browse/SHIRO-498
             Project: Shiro
          Issue Type: Improvement
    Affects Versions: 1.2.2
            Reporter: Jochen Kemnade


org.apache.shiro.util.ThreadContext.getValue(Object) and org.apache.shiro.util.ThreadContext.remove(Object)
initialze the TheadLocal unnecessarily via initialValue(). Both methods should return without
creating the ThreadLocal to avoid potential memory leaks.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message