Use indexOf a char

This commit is contained in:
Guido Lena Cota
2018-10-15 23:09:35 +02:00
parent 317edea8c2
commit cdef68af31
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ public class FilterDefinition {
}
public FilterDefinition(String text) {
int eqIdx = text.indexOf("=");
int eqIdx = text.indexOf('=');
if (eqIdx <= 0) {
setName(text);
return;

View File

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

View File

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