From 936bb4abe9847cd68b32561bfcb4e2d2991ad6ae Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Tue, 25 Jul 2017 18:04:18 +0100 Subject: [PATCH] Remove unused local variables in two tests. --- .../src/test/org/apache/solr/metrics/SolrMetricManagerTest.java | 1 - .../solr/metrics/reporters/solr/SolrCloudReportersTest.java | 1 - 2 files changed, 2 deletions(-) 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 5739e53454e..87fc883a55d 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(); 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 41848178ab2..5b6dc099905 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();