mirror of https://github.com/apache/lucene.git
SOLR-10671: remove two-and-a-half unused private static logger warnings
This commit is contained in:
parent
ea79c668c7
commit
622e527cf2
|
@ -17,7 +17,6 @@
|
|||
package org.apache.solr.metrics.reporters;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -27,14 +26,11 @@ import com.codahale.metrics.ganglia.GangliaReporter;
|
|||
import info.ganglia.gmetric4j.gmetric.GMetric;
|
||||
import org.apache.solr.metrics.SolrMetricManager;
|
||||
import org.apache.solr.metrics.SolrMetricReporter;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class SolrGangliaReporter extends SolrMetricReporter {
|
||||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
private String host = null;
|
||||
private int port = -1;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
package org.apache.solr.metrics.reporters;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.invoke.MethodHandles;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -29,14 +28,11 @@ import com.codahale.metrics.graphite.GraphiteSender;
|
|||
import com.codahale.metrics.graphite.PickledGraphite;
|
||||
import org.apache.solr.metrics.SolrMetricManager;
|
||||
import org.apache.solr.metrics.SolrMetricReporter;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Metrics reporter that wraps {@link com.codahale.metrics.graphite.GraphiteReporter}.
|
||||
*/
|
||||
public class SolrGraphiteReporter extends SolrMetricReporter {
|
||||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
private String host = null;
|
||||
private int port = -1;
|
||||
|
|
|
@ -43,7 +43,8 @@ import org.slf4j.LoggerFactory;
|
|||
* </ul>
|
||||
*/
|
||||
public class SolrSlf4jReporter extends SolrMetricReporter {
|
||||
// we need this to pass validate-source-patterns
|
||||
|
||||
@SuppressWarnings("unused") // we need this to pass validate-source-patterns
|
||||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
private int period = 60;
|
||||
|
|
Loading…
Reference in New Issue