mirror of https://github.com/apache/lucene.git
Remove unused local variables in two tests.
This commit is contained in:
parent
51b6840488
commit
936bb4abe9
|
@ -192,7 +192,6 @@ public class SolrMetricManagerTest extends SolrTestCaseJ4 {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testReporters() throws Exception {
|
public void testReporters() throws Exception {
|
||||||
Random r = random();
|
|
||||||
|
|
||||||
SolrResourceLoader loader = new SolrResourceLoader();
|
SolrResourceLoader loader = new SolrResourceLoader();
|
||||||
SolrMetricManager metricManager = new SolrMetricManager();
|
SolrMetricManager metricManager = new SolrMetricManager();
|
||||||
|
|
|
@ -77,7 +77,6 @@ public class SolrCloudReportersTest extends SolrCloudTestCase {
|
||||||
String leaderRegistryName = core.getCoreMetricManager().getLeaderRegistryName();
|
String leaderRegistryName = core.getCoreMetricManager().getLeaderRegistryName();
|
||||||
String coreName = core.getName();
|
String coreName = core.getName();
|
||||||
String collectionName = core.getCoreDescriptor().getCollectionName();
|
String collectionName = core.getCoreDescriptor().getCollectionName();
|
||||||
String coreNodeName = core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName();
|
|
||||||
String replicaName = coreName.substring(coreName.indexOf("_replica_") + 1);
|
String replicaName = coreName.substring(coreName.indexOf("_replica_") + 1);
|
||||||
String shardId = core.getCoreDescriptor().getCloudDescriptor().getShardId();
|
String shardId = core.getCoreDescriptor().getCloudDescriptor().getShardId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue