Skip to content

Commit bcc269f

Browse files
authored
[Improve] Optimized the NumberUtils method call. (apache#4150)
1 parent c580711 commit bcc269f

File tree

1 file changed

+1
-1
lines changed
  • streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util

1 file changed

+1
-1
lines changed

streampark-spark/streampark-spark-core/src/main/scala/org/apache/streampark/spark/core/util/ParameterTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static Map<String, String> fromArgs(String[] args) {
6363

6464
if (i >= args.length) {
6565
map.put(key, NO_VALUE_KEY);
66-
} else if (NumberUtils.isNumber(args[i])) {
66+
} else if (NumberUtils.isCreatable(args[i])) {
6767
map.put(key, args[i]);
6868
i += 1;
6969
} else if (args[i].startsWith("--") || args[i].startsWith("-")) {

0 commit comments

Comments
 (0)