lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject lucene-solr:master: SOLR-12537: remove some unused (private static) loggers
Date Wed, 04 Jul 2018 10:57:27 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 0f652627a -> 067a6633e


SOLR-12537: remove some unused (private static) loggers


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/067a6633
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/067a6633
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/067a6633

Branch: refs/heads/master
Commit: 067a6633ed50de104c2aed335929bd7b5781646e
Parents: 0f65262
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Wed Jul 4 11:37:56 2018 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Wed Jul 4 11:37:56 2018 +0100

----------------------------------------------------------------------
 .../java/org/apache/solr/response/GraphMLResponseWriter.java    | 5 -----
 .../src/test/org/apache/solr/schema/SchemaApiFailureTest.java   | 4 ----
 .../java/org/apache/solr/client/solrj/io/stream/EvalStream.java | 5 -----
 .../org/apache/solr/client/solrj/io/stream/PriorityStream.java  | 5 -----
 .../java/org/apache/solr/client/solrj/io/stream/SolrStream.java | 5 -----
 .../org/apache/solr/client/solrj/io/stream/TopicStream.java     | 5 -----
 .../org/apache/solr/client/solrj/io/stream/TupleStream.java     | 5 -----
 7 files changed, 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/core/src/java/org/apache/solr/response/GraphMLResponseWriter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/response/GraphMLResponseWriter.java b/solr/core/src/java/org/apache/solr/response/GraphMLResponseWriter.java
index c41e2a2..9bb7403 100644
--- a/solr/core/src/java/org/apache/solr/response/GraphMLResponseWriter.java
+++ b/solr/core/src/java/org/apache/solr/response/GraphMLResponseWriter.java
@@ -20,7 +20,6 @@ package org.apache.solr.response;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.Writer;
-import java.lang.invoke.MethodHandles;
 import java.util.Iterator;
 import java.util.List;
 import java.util.ArrayList;
@@ -31,14 +30,10 @@ import org.apache.solr.client.solrj.io.Tuple;
 import org.apache.solr.common.util.NamedList;
 import org.apache.solr.handler.GraphHandler;
 import org.apache.solr.request.SolrQueryRequest;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 
 public class GraphMLResponseWriter implements QueryResponseWriter {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   public void init(NamedList args) {
     /* NOOP */
   }

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java b/solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java
index 8456787..cf19d96 100644
--- a/solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/SchemaApiFailureTest.java
@@ -17,7 +17,6 @@
 
 package org.apache.solr.schema;
 
-import java.lang.invoke.MethodHandles;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.solr.client.solrj.impl.CloudSolrClient;
@@ -30,11 +29,8 @@ import org.apache.solr.common.cloud.DocCollection;
 import org.apache.solr.common.util.Utils;
 import org.junit.BeforeClass;
 import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class SchemaApiFailureTest extends SolrCloudTestCase {
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
 
   private static final String COLLECTION = "schema-api-failure";
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/EvalStream.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/EvalStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/EvalStream.java
index 9679092..957f5b4 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/EvalStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/EvalStream.java
@@ -18,7 +18,6 @@
 package org.apache.solr.client.solrj.io.stream;
 
 import java.io.IOException;
-import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Locale;
@@ -31,16 +30,12 @@ import org.apache.solr.client.solrj.io.stream.expr.Expressible;
 import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
 import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
 import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * @since 6.6.0
  */
 public class EvalStream extends TupleStream implements Expressible {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   private TupleStream stream;
   private TupleStream evalStream;
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/PriorityStream.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/PriorityStream.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/PriorityStream.java
index 1609200..edb3455 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/PriorityStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/PriorityStream.java
@@ -18,7 +18,6 @@
 package org.apache.solr.client.solrj.io.stream;
 
 import java.io.IOException;
-import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Locale;
@@ -31,8 +30,6 @@ import org.apache.solr.client.solrj.io.stream.expr.Expressible;
 import org.apache.solr.client.solrj.io.stream.expr.StreamExplanation;
 import org.apache.solr.client.solrj.io.stream.expr.StreamExpression;
 import org.apache.solr.client.solrj.io.stream.expr.StreamFactory;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * The priority function wraps two topics that represent high priority and low priority task
queues.
@@ -48,8 +45,6 @@ import org.slf4j.LoggerFactory;
 
 public class PriorityStream extends TupleStream implements Expressible {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   private PushBackStream highPriorityTasks;
   private PushBackStream tasks;
   private TupleStream currentStream;

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java
index 88b1abc..a126aa9 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java
@@ -19,7 +19,6 @@ package org.apache.solr.client.solrj.io.stream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
-import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Iterator;
@@ -44,8 +43,6 @@ import org.apache.solr.common.params.CommonParams;
 import org.apache.solr.common.params.ModifiableSolrParams;
 import org.apache.solr.common.params.SolrParams;
 import org.apache.solr.common.util.NamedList;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
 *  Queries a single Solr instance and maps SolrDocs to a Stream of Tuples.
@@ -54,8 +51,6 @@ import org.slf4j.LoggerFactory;
 
 public class SolrStream extends TupleStream {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   private static final long serialVersionUID = 1;
 
   private String baseUrl;

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TopicStream.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TopicStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TopicStream.java
index 9f3cfb6..e076186 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TopicStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TopicStream.java
@@ -18,7 +18,6 @@
 package org.apache.solr.client.solrj.io.stream;
 
 import java.io.IOException;
-import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
@@ -60,8 +59,6 @@ import org.apache.solr.common.params.ModifiableSolrParams;
 import org.apache.solr.common.params.SolrParams;
 import org.apache.solr.common.util.ExecutorUtil;
 import org.apache.solr.common.util.SolrjNamedThreadFactory;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import static org.apache.solr.common.params.CommonParams.DISTRIB;
 import static org.apache.solr.common.params.CommonParams.ID;
@@ -73,8 +70,6 @@ import static org.apache.solr.common.params.CommonParams.VERSION_FIELD;
  */
 public class TopicStream extends CloudSolrStream implements Expressible  {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   private static final long serialVersionUID = 1;
 
   private long count;

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/067a6633/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java
index e178040..288608f 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java
@@ -20,7 +20,6 @@ import java.io.Closeable;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.Serializable;
-import java.lang.invoke.MethodHandles;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
@@ -42,8 +41,6 @@ import org.apache.solr.common.cloud.Replica;
 import org.apache.solr.common.cloud.Slice;
 import org.apache.solr.common.cloud.ZkCoreNodeProps;
 import org.apache.solr.common.cloud.ZkStateReader;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 
 /**
@@ -51,8 +48,6 @@ import org.slf4j.LoggerFactory;
  */
 public abstract class TupleStream implements Closeable, Serializable, MapWriter {
 
-  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
-
   private static final long serialVersionUID = 1;
   
   private UUID streamNodeId = UUID.randomUUID();


Mime
View raw message