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:
Uwe Schindler 2012-07-24 21:07:56 +00:00
parent ca69c47866
commit f099b31b5a
1 changed files with 1 additions and 2 deletions

View File

@ -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) {