提交 24bc570e authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use File.separator for SysProperties.FILE_SEPARATOR

上级 f4c0955b
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
*/ */
package org.h2.engine; package org.h2.engine;
import java.io.File;
import org.h2.util.MathUtils; import org.h2.util.MathUtils;
import org.h2.util.Utils; import org.h2.util.Utils;
...@@ -42,11 +44,10 @@ public class SysProperties { ...@@ -42,11 +44,10 @@ public class SysProperties {
public static final String H2_BROWSER = "h2.browser"; public static final String H2_BROWSER = "h2.browser";
/** /**
* System property <code>file.separator</code> (default: /).<br /> * System property <code>file.separator</code>.<br />
* It is usually set by the system, and used to build absolute file names. * It is set by the system, and used to build absolute file names.
*/ */
public static final String FILE_SEPARATOR = public static final String FILE_SEPARATOR = File.separator;
Utils.getProperty("file.separator", "/");
/** /**
* System property <code>line.separator</code> (default: \n).<br /> * System property <code>line.separator</code> (default: \n).<br />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论