提交 32b28f61 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve code coverage.

上级 c20ae41e
...@@ -46,7 +46,7 @@ public class FileObjectDisk extends RandomAccessFile implements FileObject { ...@@ -46,7 +46,7 @@ public class FileObjectDisk extends RandomAccessFile implements FileObject {
} }
public String getName() { public String getName() {
return name; return name.replace('\\', '/');
} }
public synchronized boolean tryLock() { public synchronized boolean tryLock() {
......
...@@ -42,7 +42,7 @@ public class FileObjectDiskChannel implements FileObject { ...@@ -42,7 +42,7 @@ public class FileObjectDiskChannel implements FileObject {
} }
public String getName() { public String getName() {
return FileSystemDiskNio.PREFIX + name; return FileSystemDiskNio.PREFIX + name.replace('\\', '/');
} }
public long length() throws IOException { public long length() throws IOException {
......
...@@ -130,7 +130,7 @@ public class FileObjectDiskMapped implements FileObject { ...@@ -130,7 +130,7 @@ public class FileObjectDiskMapped implements FileObject {
} }
public String getName() { public String getName() {
return FileSystemDiskNioMapped.PREFIX + name; return FileSystemDiskNioMapped.PREFIX + name.replace('\\', '/');
} }
public long length() throws IOException { public long length() throws IOException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论