You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by mi...@apache.org on 2018/09/20 06:34:44 UTC
[incubator-dubbo-ops] branch develop updated: rule check
This is an automated email from the ASF dual-hosted git repository.
min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new 34d88f0 rule check
34d88f0 is described below
commit 34d88f061749b3d309a76898d425db3ca85cd14b
Author: nzomkxia <z8...@gmail.com>
AuthorDate: Thu Sep 20 14:34:32 2018 +0800
rule check
---
.../org/apache/dubbo/admin/registry/common/domain/Route.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/registry/common/domain/Route.java b/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/registry/common/domain/Route.java
index f6a0b2e..f98ca4b 100644
--- a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/registry/common/domain/Route.java
+++ b/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/registry/common/domain/Route.java
@@ -184,12 +184,12 @@ public class Route extends Entity {
public void setRule(String rule) {
this.rule = rule;
-// String[] rules = rule.split(" => ");
-// if (rules.length != 2) {
-// throw new IllegalArgumentException("Illegal Route Condition Rule");
-// }
-// this.matchRule = rules[0];
-// this.filterRule = rules[1];
+ String[] rules = rule.split(" => ");
+ if (rules.length != 2) {
+ throw new IllegalArgumentException("Illegal Route Condition Rule");
+ }
+ this.matchRule = rules[0];
+ this.filterRule = rules[1];
}
public String getMatchRule() {