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

jshao 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 c23f11e9d8 [#7222] fix(lineage): Remove unnecessary toString call in 
Utils.getJobName (#7237)
c23f11e9d8 is described below

commit c23f11e9d85b422ec30f94ab9977f9e9223e15dc
Author: youngseojeon <[email protected]>
AuthorDate: Mon May 26 10:50:18 2025 +0900

    [#7222] fix(lineage): Remove unnecessary toString call in Utils.getJobName 
(#7237)
    
    ### What changes were proposed in this pull request?
    
    FIX #7222
    
    ### Why are the changes needed?
    
    In lineage/src/main/java/org/apache/gravitino/lineage/Utils.java the
    method getJobName uses toString() when it is not needed.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    All build tests passed.
---
 lineage/src/main/java/org/apache/gravitino/lineage/Utils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lineage/src/main/java/org/apache/gravitino/lineage/Utils.java 
b/lineage/src/main/java/org/apache/gravitino/lineage/Utils.java
index cb3c90232e..087acf231f 100644
--- a/lineage/src/main/java/org/apache/gravitino/lineage/Utils.java
+++ b/lineage/src/main/java/org/apache/gravitino/lineage/Utils.java
@@ -33,6 +33,6 @@ public class Utils {
 
   public static String getJobName(RunEvent event) {
     Job job = event.getJob();
-    return job == null ? "Unknown" : job.getName().toString();
+    return job == null ? "Unknown" : job.getName();
   }
 }

Reply via email to