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

Uwe Schindler commented on LUCENE-6154:
---------------------------------------

Maybe one solution is to make Directory.spin() return "true" by default and not 
make it abstract? So nobody needs to implement it if he dont care about the 
optmization?

> nuke FilterDirectory.unwrap or make package-private
> ---------------------------------------------------
>
>                 Key: LUCENE-6154
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6154
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> As Uwe points out, this is dangerous. The only thing using it is its test: 
> TestFilterDirectory.testUnwrap() and IOUtils.spins().
> If this method is implemented in some other way, we could remove it. 
> otherwise maybe it can be package-private.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to