From a29e93cb8511f5c247bc82ec9d2e2501dba6c2a8 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 14 Mar 2010 09:13:40 +0000 Subject: [PATCH] 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 --- src/java/org/apache/lucene/util/AttributeSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/util/AttributeSource.java b/src/java/org/apache/lucene/util/AttributeSource.java index 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); }