This is an automated email from the ASF dual-hosted git repository.

jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new f39f4d4494 [#6517] fix: unneeded call to toString() (#6521)
f39f4d4494 is described below

commit f39f4d4494fd906796510f612c5003fb9c04db79
Author: Abdullah Javed <[email protected]>
AuthorDate: Tue Feb 25 16:03:52 2025 +0100

    [#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
---
 .../src/main/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 9fd1c4ca39..cacfd8a055 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 class UntagEntity extends Command {
       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);
     }
   }
 

Reply via email to