You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2020/10/01 21:02:55 UTC

[lucene-solr] branch master updated: SOLR-12987: Fix precommit

This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 6c3b1aa  SOLR-12987: Fix precommit
6c3b1aa is described below

commit 6c3b1aa5ca2cdaaa63be73fb5425fd3b372d40b4
Author: David Smiley <ds...@salesforce.com>
AuthorDate: Thu Oct 1 17:02:38 2020 -0400

    SOLR-12987: Fix precommit
---
 solr/core/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 20c775e..e1b277a 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
    */