From 4a623e9a5f03b31a7f9bd04131cc8bff9934ef00 Mon Sep 17 00:00:00 2001 From: Ponfee Date: Sat, 23 Mar 2024 12:29:16 +0800 Subject: [PATCH] optimize code --- .../java/cn/ponfee/disjob/common/dag/DAGExpressionParser.java | 4 +++- disjob-samples/disjob-samples-frameless-worker/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/disjob-common/src/main/java/cn/ponfee/disjob/common/dag/DAGExpressionParser.java b/disjob-common/src/main/java/cn/ponfee/disjob/common/dag/DAGExpressionParser.java index 7084705e0..16ef8a086 100644 --- a/disjob-common/src/main/java/cn/ponfee/disjob/common/dag/DAGExpressionParser.java +++ b/disjob-common/src/main/java/cn/ponfee/disjob/common/dag/DAGExpressionParser.java @@ -443,7 +443,9 @@ static String completeParenthesis(String text) { String item = list.get(i); if (StringUtils.isBlank(item)) { // skip empty string - } else if (ALL_SYMBOLS.contains(item)) { + continue; + } + if (ALL_SYMBOLS.contains(item)) { builder.append(item); } else if (Str.OPEN.equals(Collects.get(list, i - 1)) && Str.CLOSE.equals(Collects.get(list, i + 1))) { builder.append(item); diff --git a/disjob-samples/disjob-samples-frameless-worker/pom.xml b/disjob-samples/disjob-samples-frameless-worker/pom.xml index d25269d59..ee1e2e0c4 100644 --- a/disjob-samples/disjob-samples-frameless-worker/pom.xml +++ b/disjob-samples/disjob-samples-frameless-worker/pom.xml @@ -40,7 +40,7 @@ io.vertx vertx-web - 4.5.4 + 4.5.5 io.netty diff --git a/pom.xml b/pom.xml index a46d2eba4..1dbc5806c 100644 --- a/pom.xml +++ b/pom.xml @@ -99,7 +99,7 @@ 1.6.0 0.8.8 - 3.1.0 + 3.2.1