lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject lucene-solr:branch_7x: Remove unused local variables in two tests.
Date Fri, 28 Jul 2017 16:06:13 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 46a195dd2 -> d838a7abe


Remove unused local variables in two tests.


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

Branch: refs/heads/branch_7x
Commit: d838a7abe033af0905311dc686c2fa0862507a70
Parents: 46a195d
Author: Christine Poerschke <cpoerschke@apache.org>
Authored: Tue Jul 25 18:04:18 2017 +0100
Committer: Christine Poerschke <cpoerschke@apache.org>
Committed: Fri Jul 28 17:02:20 2017 +0100

----------------------------------------------------------------------
 .../src/test/org/apache/solr/metrics/SolrMetricManagerTest.java     | 1 -
 .../apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java  | 1 -
 2 files changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d838a7ab/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
index 5739e53..87fc883 100644
--- a/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
+++ b/solr/core/src/test/org/apache/solr/metrics/SolrMetricManagerTest.java
@@ -192,7 +192,6 @@ public class SolrMetricManagerTest extends SolrTestCaseJ4 {
 
   @Test
   public void testReporters() throws Exception {
-    Random r = random();
 
     SolrResourceLoader loader = new SolrResourceLoader();
     SolrMetricManager metricManager = new SolrMetricManager();

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d838a7ab/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java
b/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java
index 4184817..5b6dc09 100644
--- a/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java
+++ b/solr/core/src/test/org/apache/solr/metrics/reporters/solr/SolrCloudReportersTest.java
@@ -77,7 +77,6 @@ public class SolrCloudReportersTest extends SolrCloudTestCase {
           String leaderRegistryName = core.getCoreMetricManager().getLeaderRegistryName();
           String coreName = core.getName();
           String collectionName = core.getCoreDescriptor().getCollectionName();
-          String coreNodeName = core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName();
           String replicaName = coreName.substring(coreName.indexOf("_replica_") + 1);
           String shardId = core.getCoreDescriptor().getCloudDescriptor().getShardId();
 


Mime
View raw message