lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1634490 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
Date Mon, 27 Oct 2014 10:17:36 GMT
Author: mikemccand
Date: Mon Oct 27 10:17:36 2014
New Revision: 1634490

URL: http://svn.apache.org/r1634490
Log:
add missing space, fix typo in exc message

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java?rev=1634490&r1=1634489&r2=1634490&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/NamedSPILoader.java
Mon Oct 27 10:17:36 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/branch_5x/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java?rev=1634490&r1=1634489&r2=1634490&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/SPIClassIterator.java
Mon Oct 27 10:17:36 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));
     }
   }



Mime
View raw message