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

--no commit message

--no commit message
上级 cd2215dd
...@@ -44,14 +44,6 @@ public class ConnectionInfo implements Cloneable { ...@@ -44,14 +44,6 @@ public class ConnectionInfo implements Cloneable {
private boolean persistent; private boolean persistent;
private boolean unnamed; private boolean unnamed;
public Object clone() throws CloneNotSupportedException {
ConnectionInfo clone = (ConnectionInfo) super.clone();
clone.prop = (Properties) prop.clone();
clone.filePasswordHash = ByteUtils.cloneByteArray(filePasswordHash);
clone.userPasswordHash = ByteUtils.cloneByteArray(userPasswordHash);
return clone;
}
static { static {
ObjectArray list = SetTypes.getSettings(); ObjectArray list = SetTypes.getSettings();
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
...@@ -100,6 +92,14 @@ public class ConnectionInfo implements Cloneable { ...@@ -100,6 +92,14 @@ public class ConnectionInfo implements Cloneable {
parseName(); parseName();
} }
public Object clone() throws CloneNotSupportedException {
ConnectionInfo clone = (ConnectionInfo) super.clone();
clone.prop = (Properties) prop.clone();
clone.filePasswordHash = ByteUtils.cloneByteArray(filePasswordHash);
clone.userPasswordHash = ByteUtils.cloneByteArray(userPasswordHash);
return clone;
}
private void parseName() { private void parseName() {
if (".".equals(name)) { if (".".equals(name)) {
name = "mem:"; name = "mem:";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论