throw new QuerySyntaxException(buffer, "No valid expression operators found");
}
return parsedExpression;
}
private SimpleEqualityExpression findEqualityExpression(String buffer) {
<BUG>if(buffer.indexOf(SimpleEqualityExpression.EqualityOperator.NOT_EQUAL.getNotation()) != -1) {
</BUG>
String[] operands = buffer.split(SimpleEqualityExpression.EqualityOperator.NOT_EQUAL.getNotation(), 2);
return new SimpleEqualityExpression(operands[0], SimpleEqualityExpression.EqualityOperator.NOT_EQUAL, operands[1]);
<BUG>} else if(buffer.indexOf(SimpleEqualityExpression.EqualityOperator.LESS_THAN_OR_EQUAL.getNotation()) != -1) {
</BUG>
String[] operands = buffer.split(SimpleEqualityExpression.EqualityOperator.LESS_THAN_OR_EQUAL.getNotation(), 2);

throw new QuerySyntaxException(buffer, "No valid expression operators found");
}
return parsedExpression;
}
private SimpleEqualityExpression findEqualityExpression(String buffer) {
if(buffer.contains(SimpleEqualityExpression.EqualityOperator.NOT_EQUAL.getNotation())) {
String[] operands = buffer.split(SimpleEqualityExpression.EqualityOperator.NOT_EQUAL.getNotation(), 2);
return new SimpleEqualityExpression(operands[0], SimpleEqualityExpression.EqualityOperator.NOT_EQUAL, operands[1]);
} else if(buffer.contains(SimpleEqualityExpression.EqualityOperator.LESS_THAN_OR_EQUAL.getNotation())) {
String[] operands = buffer.split(SimpleEqualityExpression.EqualityOperator.LESS_THAN_OR_EQUAL.getNotation(), 2);
