From a84d9a5d694e97c40d90a07a0882492946e72141 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Tue, 27 Sep 2016 12:17:58 +0100 Subject: [PATCH] In ConfigSetProperties use unintentionally unused local (objectClass). --- .../core/src/java/org/apache/solr/core/ConfigSetProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/core/ConfigSetProperties.java b/solr/core/src/java/org/apache/solr/core/ConfigSetProperties.java index 004b166f818..77cd2725cf6 100644 --- a/solr/core/src/java/org/apache/solr/core/ConfigSetProperties.java +++ b/solr/core/src/java/org/apache/solr/core/ConfigSetProperties.java @@ -70,7 +70,7 @@ public class ConfigSetProperties { Object object = ObjectBuilder.getVal(jsonParser); if (!(object instanceof Map)) { final String objectClass = object == null ? "null" : object.getClass().getName(); - throw new SolrException(ErrorCode.SERVER_ERROR, "Invalid JSON type " + object.getClass().getName() + ", expected Map"); + throw new SolrException(ErrorCode.SERVER_ERROR, "Invalid JSON type " + objectClass + ", expected Map"); } return new NamedList((Map)object); } catch (Exception ex) {