This is an automated email from the ASF dual-hosted git repository. ctubbsii 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 3e78ef7 Fix trivial warnings 3e78ef7 is described below commit 3e78ef7925fbc740f443709cebc978b8d1726d55 Author: Christopher Tubbs <ctubb...@apache.org> AuthorDate: Tue Jul 23 13:43:33 2024 -0400 Fix trivial warnings * Fix resource closure warning in lambda by assigning to a final var outside * Fix deprecation warning by suppressing the use of the deprecated method * Add missing serialVersionUID to Serializable anonymous inner class --- .../org/apache/accumulo/testing/continuous/ContinuousInputFormat.java | 1 + .../accumulo/testing/performance/tests/YieldingScanExecutorPT.java | 3 ++- .../java/org/apache/accumulo/testing/randomwalk/shard/ExportIndex.java | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/accumulo/testing/continuous/ContinuousInputFormat.java b/src/main/java/org/apache/accumulo/testing/continuous/ContinuousInputFormat.java index fd3443b..a6fa97d 100644 --- a/src/main/java/org/apache/accumulo/testing/continuous/ContinuousInputFormat.java +++ b/src/main/java/org/apache/accumulo/testing/continuous/ContinuousInputFormat.java @@ -143,6 +143,7 @@ public class ContinuousInputFormat extends InputFormat<Key,Value> { byte[] fam = genCol(random.nextInt(maxFam)); byte[] qual = genCol(random.nextInt(maxQual)); + @SuppressWarnings("deprecation") byte[] cv = visibilities.get(random.nextInt(visibilities.size())).flatten(); if (cksum != null) { diff --git a/src/main/java/org/apache/accumulo/testing/performance/tests/YieldingScanExecutorPT.java b/src/main/java/org/apache/accumulo/testing/performance/tests/YieldingScanExecutorPT.java index b6cd64e..ac5da63 100644 --- a/src/main/java/org/apache/accumulo/testing/performance/tests/YieldingScanExecutorPT.java +++ b/src/main/java/org/apache/accumulo/testing/performance/tests/YieldingScanExecutorPT.java @@ -220,7 +220,8 @@ public class YieldingScanExecutorPT implements PerformanceTest { TestExecutor<Long> longScans = new TestExecutor<>(NUM_LONG_SCANS); for (int i = 0; i < NUM_LONG_SCANS; i++) { - longScans.submit(() -> scan(tableName, env.getClient(), stop, fpi.next())); + final var client = env.getClient(); + longScans.submit(() -> scan(tableName, client, stop, fpi.next())); } return longScans; } diff --git a/src/main/java/org/apache/accumulo/testing/randomwalk/shard/ExportIndex.java b/src/main/java/org/apache/accumulo/testing/randomwalk/shard/ExportIndex.java index 13c39f8..9460b63 100644 --- a/src/main/java/org/apache/accumulo/testing/randomwalk/shard/ExportIndex.java +++ b/src/main/java/org/apache/accumulo/testing/randomwalk/shard/ExportIndex.java @@ -123,6 +123,8 @@ public class ExportIndex extends Test { private static HashMap<String,String> getPropsFromTable(String tableName, RandWalkEnv env) throws AccumuloException, TableNotFoundException { return new HashMap<>() { + private static final long serialVersionUID = 1L; + { for (var entry : env.getAccumuloClient().tableOperations().getProperties(tableName)) put(entry.getKey(), entry.getValue());