Skip to content
Browse files
Fix warning in randomwalk Init
* Fix redundant cast to java.util.Random warning in randomwalk Init
  • Loading branch information
milleruntime committed Jan 5, 2021
1 parent ec55973 commit 02a39c518bd40748949d0412bc7698b964d8c910
Showing 1 changed file with 1 addition and 2 deletions.
@@ -19,7 +19,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Properties;
import java.util.Random;
import java.util.TreeSet;

import org.apache.accumulo.core.client.ConditionalWriter;
@@ -53,7 +52,7 @@ public void visit(State state, RandWalkEnv env, Properties props) throws Excepti
for (int i = 0; i < numBanks; i++)
// shuffle for case when multiple threads are adding banks
Collections.shuffle(banks, (Random) state.getRandom());
Collections.shuffle(banks, state.getRandom());

ConditionalWriter cw = (ConditionalWriter) state.get("cw");

0 comments on commit 02a39c5

Please sign in to comment.