Apache Solr open-source search software
LUCENE-2314: forgot .getName() in IAE message, else output is not looking good
Uwe Schindlera29e93cb8511
diff --git a/src/java/org/apache/lucene/util/AttributeSource.java b/src/java/org/apache/lucene/util/AttributeSource.javaindex 3ae2053ef94..1af3763eb6c 100644--- a/src/java/org/apache/lucene/util/AttributeSource.java+++ b/src/java/org/apache/lucene/util/AttributeSource.java@@ -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);}