SOLR-12987: Fix precommit

This commit is contained in:
David Smiley 2020-10-01 17:02:38 -04:00
parent 45dc2615c7
commit 6c3b1aa5ca
No known key found for this signature in database
GPG Key ID: 6FDFF3BF6796FD4A
1 changed files with 4 additions and 1 deletions

View File

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