mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
No effective change - code cleanup - simplify if
This commit is contained in:
1 parent
069b83b78d
commit
53cf6c162c
8 files changed
+17
-71
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user