Browse Source

polish

pull/41/head
Spencer Gibb 8 years ago
parent
commit
d37bdba31d
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java
  2. 2
      src/main/java/org/springframework/cloud/gateway/config/Route.java

2
src/main/java/org/springframework/cloud/gateway/config/PredicateDefinition.java

@ -25,7 +25,7 @@ public class PredicateDefinition { @@ -25,7 +25,7 @@ public class PredicateDefinition {
public PredicateDefinition(String text) {
int eqIdx = text.indexOf("=");
if (eqIdx <= 0) {
throw new ValidationException("Unable to parse Predicate text '" + text + "'" +
throw new ValidationException("Unable to parse PredicateDefinition text '" + text + "'" +
", must be of the form name=value");
}
setName(text.substring(0, eqIdx));

2
src/main/java/org/springframework/cloud/gateway/config/Route.java

@ -32,7 +32,7 @@ public class Route { @@ -32,7 +32,7 @@ public class Route {
public Route(String text) {
int eqIdx = text.indexOf("=");
if (eqIdx <= 0) {
throw new ValidationException("Unable to parse Predicate text '" + text + "'" +
throw new ValidationException("Unable to parse Route text '" + text + "'" +
", must be of the form name=value");
}

Loading…
Cancel
Save