mirror of
https://github.com/apache/lucene.git
synced 2025-02-23 02:35:02 +00:00
LUCENE-2510: revert
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene2510@1365294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f099b31b5a
commit
95a8d0a01c
@ -76,8 +76,9 @@ public final class AnalysisSPILoader<S extends AbstractAnalysisFactory> {
|
|||||||
this.services = Collections.unmodifiableMap(services);
|
this.services = Collections.unmodifiableMap(services);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: do we even need this method?
|
||||||
public S newInstance(String name) {
|
public S newInstance(String name) {
|
||||||
final Class<? extends S> service = lookupClass(name.toLowerCase(Locale.ROOT));
|
final Class<? extends S> service = lookupClass(name);
|
||||||
try {
|
try {
|
||||||
return service.newInstance();
|
return service.newInstance();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user