No effective change - code cleanup - simplify if

This commit is contained in:
Robin Bygrave committed 2015-07-31 14:51:34 +12:00
1 parent 069b83b78d
commit 53cf6c162c
8 files changed
+17 -71

No files matched your search

@@ -127,11 +127,7 @@ public class OrmQueryDetail implements Serializable {
}
public boolean containsProperty(String property) {
if (baseProps == null) {
return true;
} else {
return baseProps.isIncluded(property);
}
return baseProps == null || baseProps.isIncluded(property);
}
/**
@@ -135,17 +135,7 @@ public class SimpleTextParser {
}
private boolean isWordTerminator(char c, boolean isOperator) {
if (Character.isWhitespace(c)) {
return true;
}
if (isOperator(c)) {
return !isOperator;
}
if (c == '(') {
return true;
}
return isOperator;
return Character.isWhitespace(c) || (isOperator(c) ? !isOperator : c == '(' || isOperator);
}
private boolean isOperator(char c) {