You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Alan Woodward <al...@flax.co.uk> on 2014/07/09 18:01:51 UTC
Re: svn commit: r1609200 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.java
Can't we just not override these methods? They're doing the exact same thing that the superclass does...
>
> @Override
> public LockFactory getLockFactory() {
> - return delegate.getLockFactory();
> + return in.getLockFactory();
> }
>
> @Override
> public void setLockFactory(LockFactory lf) throws IOException {
> - delegate.setLockFactory(lf);
> + in.setLockFactory(lf);
> }
>
> @Override
> public String getLockID() {
> - return delegate.getLockID();
> + return in.getLockID();
> }
>
> @Override
> public Lock makeLock(String name) {
> - return delegate.makeLock(name);
> + return in.makeLock(name);
> }
>
> @Override
> public void clearLock(String name) throws IOException {
> - delegate.clearLock(name);
> + in.clearLock(name);
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: svn commit: r1609200 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.java
Posted by Simon Willnauer <si...@gmail.com>.
oh yeah - crap... I will fix tomorrow
On Wed, Jul 9, 2014 at 6:01 PM, Alan Woodward <al...@flax.co.uk> wrote:
> Can't we just not override these methods? They're doing the exact same thing that the superclass does...
>
>>
>> @Override
>> public LockFactory getLockFactory() {
>> - return delegate.getLockFactory();
>> + return in.getLockFactory();
>> }
>>
>> @Override
>> public void setLockFactory(LockFactory lf) throws IOException {
>> - delegate.setLockFactory(lf);
>> + in.setLockFactory(lf);
>> }
>>
>> @Override
>> public String getLockID() {
>> - return delegate.getLockID();
>> + return in.getLockID();
>> }
>>
>> @Override
>> public Lock makeLock(String name) {
>> - return delegate.makeLock(name);
>> + return in.makeLock(name);
>> }
>>
>> @Override
>> public void clearLock(String name) throws IOException {
>> - delegate.clearLock(name);
>> + in.clearLock(name);
>> }
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org