Skip to content

Commit 403c9b1

Browse files
committed
Unnecessary @SuppressWarnings("resource")
1 parent 0ee29ce commit 403c9b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ public static Path copyFile(final URL sourceFile, final Path targetFile, final C
358358
* @throws IOException if an I/O error occurs.
359359
* @see Files#copy(Path, Path, CopyOption...)
360360
*/
361-
@SuppressWarnings("resource") // getFileSystem() is a getter
362361
public static Path copyFileToDirectory(final Path sourceFile, final Path targetDirectory, final CopyOption... copyOptions) throws IOException {
363362
// Path.resolve() naturally won't work across FileSystem unless we convert to a String
364363
final Path sourceFileName = Objects.requireNonNull(sourceFile.getFileName(), "source file name");

0 commit comments

Comments
 (0)