You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ko...@apache.org on 2010/05/30 16:58:26 UTC

svn commit: r949523 - in /lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene: analysis/CharTokenizer.java util/VirtualMethod.java

Author: koji
Date: Sun May 30 14:58:26 2010
New Revision: 949523

URL: http://svn.apache.org/viewvc?rev=949523&view=rev
Log:
fix typo

Modified:
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/CharTokenizer.java
    lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/VirtualMethod.java

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/CharTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/CharTokenizer.java?rev=949523&r1=949522&r2=949523&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/CharTokenizer.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/CharTokenizer.java Sun May 30 14:58:26 2010
@@ -237,7 +237,7 @@ public abstract class CharTokenizer exte
    * </p>
    */
   protected boolean isTokenChar(int c) {
-    throw new UnsupportedOperationException("since LUCENE_3_1 subclasses of CharTokenizer must implement isTokenChar(int)");
+    throw new UnsupportedOperationException("since LUCENE_31 subclasses of CharTokenizer must implement isTokenChar(int)");
   }
 
   /**

Modified: lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/VirtualMethod.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/VirtualMethod.java?rev=949523&r1=949522&r2=949523&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/VirtualMethod.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/util/VirtualMethod.java Sun May 30 14:58:26 2010
@@ -83,8 +83,8 @@ public final class VirtualMethod<C> {
           "VirtualMethod instances must be singletons and therefore " +
           "assigned to static final members in the same class, they use as baseClass ctor param."
         );
-    } catch (NoSuchMethodException nsme) {
-      throw new IllegalArgumentException(baseClass.getName() + " has no such method: "+nsme.getMessage());
+    } catch (NoSuchMethodException name) {
+      throw new IllegalArgumentException(baseClass.getName() + " has no such method: "+name.getMessage());
     }
   }