From b2a4003d4c91d2e7e8f46b546bf1ac988b95ad3f Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Mon, 21 Mar 2016 00:09:15 +0100 Subject: [PATCH] SOLR-8082: Fix forbidden APIs --- .../core/src/test/org/apache/solr/schema/DocValuesTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java index 0c3b0027b29..f1d0196c226 100644 --- a/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java +++ b/solr/core/src/test/org/apache/solr/schema/DocValuesTest.java @@ -26,18 +26,20 @@ import org.apache.solr.core.SolrCore; import org.apache.solr.search.SolrIndexSearcher; import org.apache.solr.util.RefCounted; import org.junit.BeforeClass; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.io.IOException; +import java.lang.invoke.MethodHandles; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.function.Function; import java.util.function.Supplier; -import java.util.logging.Logger; public class DocValuesTest extends SolrTestCaseJ4 { - protected Logger log = Logger.getLogger(getClass().getName()); + private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); @BeforeClass public static void beforeTests() throws Exception {