You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2021/01/05 13:00:09 UTC
[accumulo-testing] branch main updated: Fix warning in randomwalk
Init
This is an automated email from the ASF dual-hosted git repository.
mmiller pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-testing.git
The following commit(s) were added to refs/heads/main by this push:
new 02a39c5 Fix warning in randomwalk Init
02a39c5 is described below
commit 02a39c518bd40748949d0412bc7698b964d8c910
Author: Mike Miller <mm...@apache.org>
AuthorDate: Tue Jan 5 07:48:13 2021 -0500
Fix warning in randomwalk Init
* Fix redundant cast to java.util.Random warning in randomwalk Init
---
.../java/org/apache/accumulo/testing/randomwalk/conditional/Init.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/accumulo/testing/randomwalk/conditional/Init.java b/src/main/java/org/apache/accumulo/testing/randomwalk/conditional/Init.java
index 2698809..acc6e98 100644
--- a/src/main/java/org/apache/accumulo/testing/randomwalk/conditional/Init.java
+++ b/src/main/java/org/apache/accumulo/testing/randomwalk/conditional/Init.java
@@ -19,7 +19,6 @@ package org.apache.accumulo.testing.randomwalk.conditional;
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 class Init extends Test {
for (int i = 0; i < numBanks; i++)
banks.add(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");