LUCENE-2314: forgot .getName() in IAE message, else output is not looking good

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@922799 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2010-03-14 09:13:40 +00:00
parent e145b4ed64
commit a29e93cb85
1 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ public class AttributeSource {
AttributeImpl targetImpl = attributeImpls.get(state.attribute.getClass()); AttributeImpl targetImpl = attributeImpls.get(state.attribute.getClass());
if (targetImpl == null) { if (targetImpl == null) {
throw new IllegalArgumentException("State contains AttributeImpl of type " + 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.attribute.copyTo(targetImpl);
state = state.next; state = state.next;
@ -491,7 +491,7 @@ public class AttributeSource {
final AttributeImpl targetImpl = target.attributeImpls.get(state.attribute.getClass()); final AttributeImpl targetImpl = target.attributeImpls.get(state.attribute.getClass());
if (targetImpl == null) { if (targetImpl == null) {
throw new IllegalArgumentException("This AttributeSource contains AttributeImpl of type " + 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); state.attribute.copyTo(targetImpl);
} }