lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r949545 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java
Date Sun, 30 May 2010 17:52:24 GMT
Author: uschindler
Date: Sun May 30 17:52:24 2010
New Revision: 949545

URL: http://svn.apache.org/viewvc?rev=949545&view=rev
Log:
revert VirtualMethod exception name, it was correct

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java?rev=949545&r1=949544&r2=949545&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/util/VirtualMethod.java Sun May 30
17:52:24 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 name) {
-      throw new IllegalArgumentException(baseClass.getName() + " has no such method: "+name.getMessage());
+    } catch (NoSuchMethodException nsme) {
+      throw new IllegalArgumentException(baseClass.getName() + " has no such method: "+nsme.getMessage());
     }
   }
   



Mime
View raw message