Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

review comments from dmitriy

  • Loading branch information...
commit 614793993c458180c2f7b132f3514175a40fef72 1 parent bfca836
@dizzzz dizzzz authored
View
5 extensions/indexes/lucene/src/org/exist/indexing/lucene/AnalyzerConfig.java
@@ -152,13 +152,13 @@ protected static Analyzer configureAnalyzer(Element config) throws DatabaseConfi
} catch (ClassNotFoundException e) {
LOG.error(String.format("Lucene index: analyzer class %s not found. (%s)", className, e.getMessage()));
- return newAnalyzer;
+ return null;
}
// CHeck if class is an Analyzer
if (!Analyzer.class.isAssignableFrom(clazz)) {
LOG.error(String.format("Lucene index: analyzer class has to be a subclass of %s", Analyzer.class.getName()));
- return newAnalyzer;
+ return null;
}
// Get list of parameters
@@ -240,6 +240,7 @@ private static Analyzer createInstance(Class<?> clazz, Class<?>[] vcParamClasses
if(LOG.isDebugEnabled()){
LOG.debug(String.format("Using analyzer %s", className));
}
+
return (Analyzer) cstr.newInstance(vcParamValues);
} catch (IllegalArgumentException e) {
Please sign in to comment.
Something went wrong with that request. Please try again.