Fix internal name
MODIFY
src/main/java/org/apache/commons/io/FileCleaner.java
src/main/java/org/apache/commons/io/FileCleaner.java
/**
* The instance to use for the deprecated, static methods.
*/
- static final FileCleaningTracker theInstance = new FileCleaningTracker();
+ static final FileCleaningTracker INSTANCE = new FileCleaningTracker();
/**
* Call this method to cause the file cleaner thread to terminate when
*/
@Deprecated
public static synchronized void exitWhenFinished() {
- theInstance.exitWhenFinished();
+ INSTANCE.exitWhenFinished();
}
/**
@@ -78,7 +78,7 @@ public static synchronized void exitWhenFinished() {
* @return the singleton instance
*/
public static FileCleaningTracker getInstance() {
- return theInstance;
+ return INSTANCE;
}
/**
@@ -90,7 +90,7 @@ public static FileCleaningTracker getInstance() {
*/
@Deprecated
public static int getTrackCount() {
- return theInstance.getTrackCount();
+ return INSTANCE.getTrackCount();
}
/**
@@ -105,7 +105,7 @@ public static int getTrackCount() {
*/
@Deprecated
public static void track(final File file, final Object marker) {
- theInstance.track(file, marker);
+ INSTANCE.track(file, marker);
}
/**
@@ -121,7 +121,7 @@ public static void track(final File file, final Object marker) {
*/
@Deprecated
public static void track(final File file, final Object marker, final FileDeleteStrategy deleteStrategy) {
- theInstance.track(file, marker, deleteStrategy);
+ INSTANCE.track(file, marker, deleteStrategy);
}
/**
@@ -136,7 +136,7 @@ public static void track(final File file, final Object marker, final FileDeleteS
*/
@Deprecated
public static void track(final String path, final Object marker) {
- theInstance.track(path, marker);
+ INSTANCE.track(path, marker);
}
/**
@@ -152,6 +152,6 @@ public static void track(final String path, final Object marker) {
*/
@Deprecated
public static void track(final String path, final Object marker, final FileDeleteStrategy deleteStrategy) {
- theInstance.track(path, marker, deleteStrategy);
+ INSTANCE.track(path, marker, deleteStrategy);
}
}

Fix internal name