This is an automated email from the ASF dual-hosted git repository. ctubbsii pushed a commit to branch 2.1 in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/2.1 by this push: new 831d2c38dd Suppress trivial warnings in deprecated code 831d2c38dd is described below commit 831d2c38dd809d778cb34a89dccccde8f870bcb2 Author: Christopher Tubbs <ctubb...@apache.org> AuthorDate: Tue Apr 15 18:42:58 2025 -0400 Suppress trivial warnings in deprecated code --- .../org/apache/accumulo/server/replication/proto/Replication.java | 1 + .../main/java/org/apache/accumulo/shell/commands/ScanCommand.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/server/base/src/main/java/org/apache/accumulo/server/replication/proto/Replication.java b/server/base/src/main/java/org/apache/accumulo/server/replication/proto/Replication.java index 65d38895b6..563c88480d 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/replication/proto/Replication.java +++ b/server/base/src/main/java/org/apache/accumulo/server/replication/proto/Replication.java @@ -405,6 +405,7 @@ package org.apache.accumulo.server.replication.proto; return true; } + @SuppressWarnings("unchecked") @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { diff --git a/shell/src/main/java/org/apache/accumulo/shell/commands/ScanCommand.java b/shell/src/main/java/org/apache/accumulo/shell/commands/ScanCommand.java index d2c5286c2d..92b9b70d89 100644 --- a/shell/src/main/java/org/apache/accumulo/shell/commands/ScanCommand.java +++ b/shell/src/main/java/org/apache/accumulo/shell/commands/ScanCommand.java @@ -308,13 +308,16 @@ public class ScanCommand extends Command { scanOptCf.getOpt(), scanOptCq.getOpt()); throw new IllegalArgumentException(formattedString); } else { + @SuppressWarnings("deprecation") var interprettedCF = interpreter.interpretColumnFamily(new Text(cf.getBytes(Shell.CHARSET))); + @SuppressWarnings("deprecation") var interprettedCQ = interpreter.interpretColumnQualifier(new Text(cq.getBytes(Shell.CHARSET))); scanner.fetchColumn(interprettedCF, interprettedCQ); } } else if (!cf.isEmpty()) { + @SuppressWarnings("deprecation") var interprettedCF = interpreter.interpretColumnFamily(new Text(cf.getBytes(Shell.CHARSET))); scanner.fetchColumnFamily(interprettedCF); @@ -323,12 +326,15 @@ public class ScanCommand extends Command { for (String a : cl.getOptionValue(scanOptColumns.getOpt()).split(",")) { final String[] sa = a.split(":", 2); if (sa.length == 1) { + @SuppressWarnings("deprecation") var interprettedCF = interpreter.interpretColumnFamily(new Text(a.getBytes(Shell.CHARSET))); scanner.fetchColumnFamily(interprettedCF); } else { + @SuppressWarnings("deprecation") var interprettedCF = interpreter.interpretColumnFamily(new Text(sa[0].getBytes(Shell.CHARSET))); + @SuppressWarnings("deprecation") var interprettedCQ = interpreter.interpretColumnQualifier(new Text(sa[1].getBytes(Shell.CHARSET))); scanner.fetchColumn(interprettedCF, interprettedCQ);