mirror of https://github.com/apache/lucene.git
LUCENE-2510: Fix lookup issue in not-yet tested code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene2510@1365283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca69c47866
commit
f099b31b5a
|
@ -76,9 +76,8 @@ public final class AnalysisSPILoader<S extends AbstractAnalysisFactory> {
|
|||
this.services = Collections.unmodifiableMap(services);
|
||||
}
|
||||
|
||||
// TODO: do we even need this method?
|
||||
public S newInstance(String name) {
|
||||
final Class<? extends S> service = lookupClass(name);
|
||||
final Class<? extends S> service = lookupClass(name.toLowerCase(Locale.ROOT));
|
||||
try {
|
||||
return service.newInstance();
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue