mirror of https://github.com/apache/lucene.git
add missing space, fix typo in exc message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1634489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a25c4c77db
commit
2769a62f44
|
@ -106,9 +106,9 @@ public final class NamedSPILoader<S extends NamedSPILoader.NamedSPI> implements
|
|||
public S lookup(String name) {
|
||||
final S service = services.get(name);
|
||||
if (service != null) return service;
|
||||
throw new IllegalArgumentException("A SPI class of type "+clazz.getName()+" with name '"+name+"' does not exist. "+
|
||||
"You need to add the corresponding JAR file supporting this SPI to your classpath."+
|
||||
"The current classpath supports the following names: "+availableServices());
|
||||
throw new IllegalArgumentException("An SPI class of type "+clazz.getName()+" with name '"+name+"' does not exist."+
|
||||
" You need to add the corresponding JAR file supporting this SPI to your classpath."+
|
||||
" The current classpath supports the following names: "+availableServices());
|
||||
}
|
||||
|
||||
public Set<String> availableServices() {
|
||||
|
|
|
@ -140,7 +140,7 @@ public final class SPIClassIterator<S> implements Iterator<Class<? extends S>> {
|
|||
// don't initialize the class (pass false as 2nd parameter):
|
||||
return Class.forName(c, false, loader).asSubclass(clazz);
|
||||
} catch (ClassNotFoundException cnfe) {
|
||||
throw new ServiceConfigurationError(String.format(Locale.ROOT, "A SPI class of type %s with classname %s does not exist, "+
|
||||
throw new ServiceConfigurationError(String.format(Locale.ROOT, "An SPI class of type %s with classname %s does not exist, "+
|
||||
"please fix the file '%s%1$s' in your classpath.", clazz.getName(), c, META_INF_SERVICES));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue