From 6c3b1aa5ca2cdaaa63be73fb5425fd3b372d40b4 Mon Sep 17 00:00:00 2001 From: David Smiley Date: Thu, 1 Oct 2020 17:02:38 -0400 Subject: [PATCH] SOLR-12987: Fix precommit --- .../src/java/org/apache/solr/logging/DeprecationLog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solr/core/src/java/org/apache/solr/logging/DeprecationLog.java b/solr/core/src/java/org/apache/solr/logging/DeprecationLog.java index 20c775e2672..e1b277afbaa 100644 --- a/solr/core/src/java/org/apache/solr/logging/DeprecationLog.java +++ b/solr/core/src/java/org/apache/solr/logging/DeprecationLog.java @@ -17,6 +17,7 @@ package org.apache.solr.logging; +import java.lang.invoke.MethodHandles; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -27,6 +28,8 @@ import org.slf4j.LoggerFactory; * Utility to log a deprecation. */ public class DeprecationLog { + // not used but needed to satisfy validate-source-patterns.gradle + private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); public static final String LOG_PREFIX = "org.apache.solr.DEPRECATED."; @@ -35,7 +38,7 @@ public class DeprecationLog { /** * Logs a deprecation warning for the provided feature, but only the first time. - * The logger name used is {@value LOG_PREFIX} + {@code featureId}. + * The logger name used is {@value #LOG_PREFIX} + {@code featureId}. * Remember that logger names are disable-able via configuration if needed. * @return true if logged */