You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2008/09/15 23:59:44 UTC

[jira] Commented: (LUCENE-1388) Add init method to CloseableThreadLocal

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

Michael McCandless commented on LUCENE-1388:
--------------------------------------------

Normally initialValue is called from get() the first time get() is invoked (if set wasn't called).  But this patch calls it in the ctor, in which case I think we should simply pass in the initial value as an arg to the ctor?

> Add init method to CloseableThreadLocal
> ---------------------------------------
>
>                 Key: LUCENE-1388
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1388
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.3.2
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>         Attachments: LUCENE-1388.patch, LUCENE-1388.patch
>
>
> Java ThreadLocal has an init method that allows subclasses to easily instantiate an initial value.  

-- 
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org