if (leftIsNull && rightIsNull) {
switch (operator) {
case EQ:
logger.warn("Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
compareNode.jjtReplaceWith(new ASTBooleanConstant(true));
break;
case NE:
logger.warn("Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
compareNode.jjtReplaceWith(new ASTBooleanConstant(false));
break;
default:
throw new VisitorException(
"Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
}