You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/10/27 11:18:38 UTC
svn commit: r1634492 - in /lucene/dev/branches/lucene_solr_4_10: ./ lucene/
lucene/core/ lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
Author: mikemccand
Date: Mon Oct 27 10:18:38 2014
New Revision: 1634492
URL: http://svn.apache.org/r1634492
Log:
add missing space, fix typo in exc message
Modified:
lucene/dev/branches/lucene_solr_4_10/ (props changed)
lucene/dev/branches/lucene_solr_4_10/lucene/ (props changed)
lucene/dev/branches/lucene_solr_4_10/lucene/core/ (props changed)
lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java?rev=1634492&r1=1634491&r2=1634492&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java (original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java Mon Oct 27 10:18:38 2014
@@ -106,9 +106,9 @@ public final class NamedSPILoader<S exte
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() {
Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java?rev=1634492&r1=1634491&r2=1634492&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java (original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java Mon Oct 27 10:18:38 2014
@@ -140,7 +140,7 @@ public final class SPIClassIterator<S> i
// 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));
}
}