提交 1516e379 authored 作者: noelgrandin's avatar noelgrandin

these two object fields can be local variables

上级 9f3d45ae
......@@ -30,7 +30,6 @@ public class JavaAggregate extends Expression {
private final UserAggregate userAggregate;
private final Select select;
private AggregateFunction aggregate;
private Expression[] args;
private int[] argTypes;
private int dataType;
......@@ -117,7 +116,7 @@ public class JavaAggregate extends Expression {
argSqlTypes[i] = DataType.convertTypeToSQLType(type);
}
try {
aggregate = getInstance();
AggregateFunction aggregate = getInstance();
dataType = DataType.convertSQLTypeToValueType(aggregate.getType(argSqlTypes));
} catch (SQLException e) {
throw DbException.convert(e);
......
......@@ -23,7 +23,6 @@ public class TestRandomSQL extends TestBase {
private int seed;
private boolean exitOnError = true;
private BnfRandom bnfRandom;
private int success, total;
/**
......@@ -78,7 +77,7 @@ public class TestRandomSQL extends TestBase {
}
Statement stat = conn.createStatement();
bnfRandom = new BnfRandom();
BnfRandom bnfRandom = new BnfRandom();
bnfRandom.setSeed(seed);
for (int i = 0; i < bnfRandom.getStatementCount(); i++) {
String sql = bnfRandom.getRandomSQL();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论