提交 c0773c43 authored 作者: Thomas Mueller's avatar Thomas Mueller

The constructor for Csv objects is now public, and Csv.getInstance() is now deprecated.

上级 0dd5f1b9
...@@ -75,7 +75,7 @@ public class Bnf { ...@@ -75,7 +75,7 @@ public class Bnf {
private void parse(Reader reader) throws SQLException, IOException { private void parse(Reader reader) throws SQLException, IOException {
Rule functions = null; Rule functions = null;
statements = New.arrayList(); statements = New.arrayList();
Csv csv = Csv.getInstance(); Csv csv = new Csv();
csv.setLineCommentCharacter('#'); csv.setLineCommentCharacter('#');
ResultSet rs = csv.read(reader, null); ResultSet rs = csv.read(reader, null);
while (rs.next()) { while (rs.next()) {
......
...@@ -70,13 +70,11 @@ public class Csv implements SimpleRowSource { ...@@ -70,13 +70,11 @@ public class Csv implements SimpleRowSource {
private Writer output; private Writer output;
private boolean endOfLine, endOfFile; private boolean endOfLine, endOfFile;
protected Csv() {
// don't allow construction by normal code
}
/** /**
* Get a new object of this class. * Get a new object of this class.
* *
* @deprecated use the public constructor instead
*
* @return the new instance * @return the new instance
*/ */
public static Csv getInstance() { public static Csv getInstance() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论