REQ-2135: simplify code

This commit is contained in:
yanglin 2024-04-03 09:16:59 +08:00
parent 2e4ac15c04
commit c2881b2396

View File

@ -25,17 +25,17 @@ class SetTypeVisitor implements SQLASTVisitor {
@Override
public void endVisit(SQLNumberExpr x) {
x.getParent().putAttribute(TYPE, x.getNumber().getClass());
x.getParent().putAttribute(TYPE, x.getValue().getClass());
}
@Override
public void endVisit(SQLSmallIntExpr x) {
x.getParent().putAttribute(TYPE, x.getNumber().getClass());
x.getParent().putAttribute(TYPE, x.getValue().getClass());
}
@Override
public void endVisit(SQLIntegerExpr x) {
x.getParent().putAttribute(TYPE, x.getNumber().getClass());
x.getParent().putAttribute(TYPE, x.getValue().getClass());
}
@Override