From bcc269fce5f0126b3988dea2bae284d4083677a8 Mon Sep 17 00:00:00 2001 From: Forus <70357858+Forus0322@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:47:31 +0800 Subject: [PATCH] [Improve] Optimized the NumberUtils method call. (#4150) --- .../org/apache/streampark/spark/core/util/ParameterTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util/ParameterTool.java b/streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util/ParameterTool.java index f8e79ef89f..b6140f84b6 100644 --- a/streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util/ParameterTool.java +++ b/streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util/ParameterTool.java @@ -63,7 +63,7 @@ public static Map fromArgs(String[] args) { if (i >= args.length) { map.put(key, NO_VALUE_KEY); - } else if (NumberUtils.isNumber(args[i])) { + } else if (NumberUtils.isCreatable(args[i])) { map.put(key, args[i]); i += 1; } else if (args[i].startsWith("--") || args[i].startsWith("-")) {