lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r922799 - /lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
Date Sun, 14 Mar 2010 09:13:41 GMT
Author: uschindler
Date: Sun Mar 14 09:13:40 2010
New Revision: 922799

URL: http://svn.apache.org/viewvc?rev=922799&view=rev
Log:
LUCENE-2314: forgot .getName() in IAE message, else output is not looking good

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java?rev=922799&r1=922798&r2=922799&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java Sun Mar 14 09:13:40
2010
@@ -367,7 +367,7 @@ public class AttributeSource {
       AttributeImpl targetImpl = attributeImpls.get(state.attribute.getClass());
       if (targetImpl == null) {
         throw new IllegalArgumentException("State contains AttributeImpl of type " +
-          state.attribute.getClass() + " that is not in in this AttributeSource");
+          state.attribute.getClass().getName() + " that is not in in this AttributeSource");
       }
       state.attribute.copyTo(targetImpl);
       state = state.next;
@@ -491,7 +491,7 @@ public class AttributeSource {
         final AttributeImpl targetImpl = target.attributeImpls.get(state.attribute.getClass());
         if (targetImpl == null) {
           throw new IllegalArgumentException("This AttributeSource contains AttributeImpl
of type " +
-            state.attribute.getClass() + " that is not in the target");
+            state.attribute.getClass().getName() + " that is not in the target");
         }
         state.attribute.copyTo(targetImpl);
       }



Mime
View raw message