mirror of https://github.com/apache/lucene.git
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:
parent
e145b4ed64
commit
a29e93cb85
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue