You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/20 16:26:08 UTC
[commons-io] branch master updated: Fix internal name
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new f5b26a97 Fix internal name
f5b26a97 is described below
commit f5b26a975a54d51b2a5c7250d9df0ef11e1d16f6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jun 20 12:26:01 2022 -0400
Fix internal name
---
src/main/java/org/apache/commons/io/FileCleaner.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/FileCleaner.java b/src/main/java/org/apache/commons/io/FileCleaner.java
index 634bffaa..ff65f962 100644
--- a/src/main/java/org/apache/commons/io/FileCleaner.java
+++ b/src/main/java/org/apache/commons/io/FileCleaner.java
@@ -39,7 +39,7 @@ public class FileCleaner {
/**
* 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
@@ -66,7 +66,7 @@ public class FileCleaner {
*/
@Deprecated
public static synchronized void exitWhenFinished() {
- theInstance.exitWhenFinished();
+ INSTANCE.exitWhenFinished();
}
/**
@@ -78,7 +78,7 @@ public class FileCleaner {
* @return the singleton instance
*/
public static FileCleaningTracker getInstance() {
- return theInstance;
+ return INSTANCE;
}
/**
@@ -90,7 +90,7 @@ public class FileCleaner {
*/
@Deprecated
public static int getTrackCount() {
- return theInstance.getTrackCount();
+ return INSTANCE.getTrackCount();
}
/**
@@ -105,7 +105,7 @@ public class FileCleaner {
*/
@Deprecated
public static void track(final File file, final Object marker) {
- theInstance.track(file, marker);
+ INSTANCE.track(file, marker);
}
/**
@@ -121,7 +121,7 @@ public class FileCleaner {
*/
@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 class FileCleaner {
*/
@Deprecated
public static void track(final String path, final Object marker) {
- theInstance.track(path, marker);
+ INSTANCE.track(path, marker);
}
/**
@@ -152,6 +152,6 @@ public class FileCleaner {
*/
@Deprecated
public static void track(final String path, final Object marker, final FileDeleteStrategy deleteStrategy) {
- theInstance.track(path, marker, deleteStrategy);
+ INSTANCE.track(path, marker, deleteStrategy);
}
}