提交 2e5a087e authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

ColumnNamer - remove redundant session field

上级 f9807349
......@@ -18,14 +18,12 @@ public class ColumnNamer {
private static final String DEFAULT_COLUMN_NAME = "DEFAULT";
private final ColumnNamerConfiguration configuration;
private final Session session;
private final Set<String> existingColumnNames = new HashSet<>();
public ColumnNamer(Session session) {
this.session = session;
if (this.session != null && this.session.getColumnNamerConfiguration() != null) {
if (session != null && session.getColumnNamerConfiguration() != null) {
// use original from session
this.configuration = this.session.getColumnNamerConfiguration();
this.configuration = session.getColumnNamerConfiguration();
} else {
// detached namer, create new
this.configuration = ColumnNamerConfiguration.getDefault();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论