mirror of https://github.com/apache/lucene.git
SOLR-12987: Fix precommit
This commit is contained in:
parent
45dc2615c7
commit
6c3b1aa5ca
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package org.apache.solr.logging;
|
package org.apache.solr.logging;
|
||||||
|
|
||||||
|
import java.lang.invoke.MethodHandles;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
|
@ -27,6 +28,8 @@ import org.slf4j.LoggerFactory;
|
||||||
* Utility to log a deprecation.
|
* Utility to log a deprecation.
|
||||||
*/
|
*/
|
||||||
public class DeprecationLog {
|
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.";
|
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.
|
* 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.
|
* Remember that logger names are disable-able via configuration if needed.
|
||||||
* @return true if logged
|
* @return true if logged
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue