From 44e98a8df37f46504c4be7901f174f9b1cfbd702 Mon Sep 17 00:00:00 2001 From: Erick Erickson Date: Fri, 15 Nov 2013 16:49:01 +0000 Subject: [PATCH] Fix forbidden API call flagged by 'ant precommit' git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1542321 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/cloud/TriLevelCompositeIdRoutingTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/TriLevelCompositeIdRoutingTest.java b/solr/core/src/test/org/apache/solr/cloud/TriLevelCompositeIdRoutingTest.java index 7d5aa129222..07a61bcb98c 100644 --- a/solr/core/src/test/org/apache/solr/cloud/TriLevelCompositeIdRoutingTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/TriLevelCompositeIdRoutingTest.java @@ -80,8 +80,6 @@ public class TriLevelCompositeIdRoutingTest extends ShardRoutingTest { // for now, we know how ranges will be distributed to shards. // may have to look it up in clusterstate if that assumption changes. - Random r = new Random(); - for (int i=0;i < NUM_DOCS;i++) { int appId = r.nextInt(NUM_APPS) + 1; int userId = r.nextInt(NUM_USERS) + 1; @@ -113,8 +111,6 @@ public class TriLevelCompositeIdRoutingTest extends ShardRoutingTest { // may have to look it up in clusterstate if that assumption changes. del("*:*"); - Random r = new Random(); - for (int i=0;i < NUM_DOCS;i++) { int appId = r.nextInt(NUM_APPS) + 1; int userId = r.nextInt(NUM_USERS) + 1;