Skip to content

Commit

Permalink
HSEARCH-2219 Fix is() method in AnalyzerReference implementations
Browse files Browse the repository at this point in the history
The call was reverted, probably due to a copy-paste from
ScopedAnalyzerReference?
  • Loading branch information
yrodiere authored and Sanne committed Dec 19, 2016
1 parent 6c1ebe9 commit e5545cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -33,7 +33,7 @@ public void close() {

@Override
public <T extends AnalyzerReference> boolean is(Class<T> analyzerType) {
return LuceneAnalyzerReference.class.isAssignableFrom( analyzerType );
return analyzerType.isAssignableFrom( LuceneAnalyzerReference.class );
}

@Override
Expand Down
Expand Up @@ -35,7 +35,7 @@ public void close() {

@Override
public <T extends AnalyzerReference> boolean is(Class<T> analyzerType) {
return RemoteAnalyzerReference.class.isAssignableFrom( analyzerType );
return analyzerType.isAssignableFrom( RemoteAnalyzerReference.class );
}

@Override
Expand Down

0 comments on commit e5545cd

Please sign in to comment.