REQ-2135: simplify code
This commit is contained in:
parent
2e4ac15c04
commit
c2881b2396
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user