diff --git a/bt-core/src/main/java/bt/data/file/FileSystemStorage.java b/bt-core/src/main/java/bt/data/file/FileSystemStorage.java index e3217b9746..e3bca0e2be 100644 --- a/bt-core/src/main/java/bt/data/file/FileSystemStorage.java +++ b/bt-core/src/main/java/bt/data/file/FileSystemStorage.java @@ -58,8 +58,10 @@ public class FileSystemStorage implements Storage { * * @param rootDirectory Root directory for this storage. All torrent files will be stored inside this directory. * @since 1.0 + * @deprecated since 1.3 in favor of more generic {@link #FileSystemStorage(Path)} */ - @Deprecated public FileSystemStorage(File rootDirectory) { + @Deprecated + public FileSystemStorage(File rootDirectory) { this(rootDirectory.toPath()); } diff --git a/bt-core/src/main/java/bt/data/file/FileSystemStorageUnit.java b/bt-core/src/main/java/bt/data/file/FileSystemStorageUnit.java index ed19e8156f..312d7e7c44 100644 --- a/bt-core/src/main/java/bt/data/file/FileSystemStorageUnit.java +++ b/bt-core/src/main/java/bt/data/file/FileSystemStorageUnit.java @@ -190,7 +190,7 @@ public long size() { @Override public String toString() { - return "(" + capacity + " B) " + file.getRoot(); + return "(" + capacity + " B) " + file; } @Override @@ -199,7 +199,7 @@ public void close() throws IOException { try { sbc.close(); } catch (IOException e) { - LOGGER.warn("Failed to close file: " + file.getRoot(), e); + LOGGER.warn("Failed to close file: " + file, e); } finally { closed = true; } diff --git a/pom.xml b/pom.xml index 86fa14edba..aac8ce8971 100644 --- a/pom.xml +++ b/pom.xml @@ -18,9 +18,6 @@ Andrei Tomashpolskiy nordmann89@gmail.com - - - MorrisLaw Jeremy L. Morris