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 */