You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2023/09/23 14:22:44 UTC

[incubator-streampark] branch dev updated: [Improve] optimize enum RestoreMode getName function (#3173)

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

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 027172c17 [Improve] optimize enum RestoreMode getName function (#3173)
027172c17 is described below

commit 027172c17b4720a22511af517485cf5a4596f22c
Author: VampireAchao <ac...@gmail.com>
AuthorDate: Sat Sep 23 22:22:38 2023 +0800

    [Improve] optimize enum RestoreMode getName function (#3173)
---
 .../src/main/java/org/apache/streampark/common/enums/RestoreMode.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampark-common/src/main/java/org/apache/streampark/common/enums/RestoreMode.java b/streampark-common/src/main/java/org/apache/streampark/common/enums/RestoreMode.java
index 8d4eae9bc..e4a49e8fc 100644
--- a/streampark-common/src/main/java/org/apache/streampark/common/enums/RestoreMode.java
+++ b/streampark-common/src/main/java/org/apache/streampark/common/enums/RestoreMode.java
@@ -56,7 +56,7 @@ public enum RestoreMode {
   }
 
   public String getName() {
-    return RestoreMode.of(this.mode).toString();
+    return this.toString();
   }
 
   public static RestoreMode of(Integer value) {