From f39f4d4494fd906796510f612c5003fb9c04db79 Mon Sep 17 00:00:00 2001 From: Abdullah Javed <65340910+JavedAbdullah@users.noreply.github.com> Date: Tue, 25 Feb 2025 16:03:52 +0100 Subject: [PATCH] [#6517] fix: unneeded call to toString() (#6521) ### What changes were proposed in this pull request? As tags is an array of strings, `tags[0].toString()` doesn't require `toString()`. ### Why are the changes needed? to string method not needed. Fix: #6517 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? no needed --- .../java/org/apache/gravitino/cli/commands/UntagEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/UntagEntity.java b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/UntagEntity.java index 9fd1c4ca394..cacfd8a0558 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/UntagEntity.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/UntagEntity.java @@ -134,7 +134,7 @@ public void handle() { printInformation( entity + " removed tags " + String.join(",", tags) + " now tagged with " + all); } else { - printInformation(entity + " removed tag " + tags[0].toString() + " now tagged with " + all); + printInformation(entity + " removed tag " + tags[0] + " now tagged with " + all); } }