[ 
https://issues.apache.org/jira/browse/LUCENE-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771885#action_12771885
 ] 

Cédrik LIME commented on LUCENE-2017:
-------------------------------------

Michael,

I wrote the class should not be closed outside Lucene because of the potential 
multiple-Threads closing problem mentioned earlier.
Feel free to change the comments (including removing the reference to this 
issue); my JavaDoc patch was a proposal, not the absolute truth! :-)

> CloseableThreadLocal is now obsolete
> ------------------------------------
>
>                 Key: LUCENE-2017
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2017
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Cédrik LIME
>            Assignee: Michael McCandless
>         Attachments: CloseableThreadLocal.patch, CloseableThreadLocal.patch
>
>
> Since Lucene 3 depends on Java 5, we can use ThreadLocal#remove() to take 
> care or resource management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to