提交 08efb070 authored 作者: noelgrandin's avatar noelgrandin

this object field can be a local variable

上级 f8f360fe
...@@ -22,7 +22,6 @@ public class BnfRandom implements BnfVisitor { ...@@ -22,7 +22,6 @@ public class BnfRandom implements BnfVisitor {
private static final boolean SHOW_SYNTAX = false; private static final boolean SHOW_SYNTAX = false;
private final Bnf config;
private final Random random = new Random(); private final Random random = new Random();
private final ArrayList<RuleHead> statements = New.arrayList(); private final ArrayList<RuleHead> statements = New.arrayList();
...@@ -30,7 +29,7 @@ public class BnfRandom implements BnfVisitor { ...@@ -30,7 +29,7 @@ public class BnfRandom implements BnfVisitor {
private String sql; private String sql;
BnfRandom() throws Exception { BnfRandom() throws Exception {
config = Bnf.getInstance(null); Bnf config = Bnf.getInstance(null);
config.linkStatements(); config.linkStatements();
ArrayList<RuleHead> all = config.getStatements(); ArrayList<RuleHead> all = config.getStatements();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论