lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1388) Add init method to CloseableThreadLocal
Date Mon, 15 Sep 2008 21:59:44 GMT

    [ 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


Mime
View raw message