提交 61f0122c authored 作者: Thomas Mueller's avatar Thomas Mueller

Avoid importing java.io.File (the idea is to simplify verifying the file system…

Avoid importing java.io.File (the idea is to simplify verifying the file system abstraction is really used everywhere)
上级 7f7efa7d
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
package org.h2.engine; package org.h2.engine;
import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
...@@ -128,7 +127,7 @@ public class ConnectionInfo implements Cloneable { ...@@ -128,7 +127,7 @@ public class ConnectionInfo implements Cloneable {
persistent = true; persistent = true;
} }
if (persistent && !remote) { if (persistent && !remote) {
if (File.separatorChar == '/') { if ("/".equals(SysProperties.FILE_SEPARATOR)) {
name = name.replace('\\', '/'); name = name.replace('\\', '/');
} else { } else {
name = name.replace('/', '\\'); name = name.replace('/', '\\');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论