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 bcc269fce [Improve] Optimized the NumberUtils method call. (#4150)
bcc269fce is described below
commit bcc269fce5f0126b3988dea2bae284d4083677a8
Author: Forus <[email protected]>
AuthorDate: Fri Dec 20 19:47:31 2024 +0800
[Improve] Optimized the NumberUtils method call. (#4150)
---
.../main/scala/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 f8e79ef89..b6140f84b 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 class ParameterTool {
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("-")) {