Skip to content

Commit c50c2ac

Browse files
committed
Remove Files utility class
The only place that used it was in the Apps utility class, which can be replaced with a simple File#getAbsolutePath() call.
1 parent 8091849 commit c50c2ac

File tree

2 files changed

+1
-92
lines changed

2 files changed

+1
-92
lines changed

scijava-common3/src/main/java/org/scijava/common3/Apps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static File getBaseDirectory(final File classLocation,
236236
final String baseSubdirectory)
237237
{
238238
if (classLocation == null) return null;
239-
String path = Files.absolutePath(classLocation).replace('\\', '/');
239+
String path = classLocation.getAbsolutePath().replace('\\', '/');
240240

241241
if (path.contains("/.m2/repository/")) {
242242
// NB: The class is in a JAR in the Maven repository cache.

scijava-common3/src/main/java/org/scijava/common3/Files.java

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)