@@ -55,6 +55,7 @@ public class FileCleaner {
5555 * @throws NullPointerException if the file is null
5656 * @deprecated Use {@link FileCleaningTracker#track(File, Object)}.
5757 */
58+ @ Deprecated
5859 public static void track (File file , Object marker ) {
5960 theInstance .track (file , marker );
6061 }
@@ -70,6 +71,7 @@ public static void track(File file, Object marker) {
7071 * @throws NullPointerException if the file is null
7172 * @deprecated Use {@link FileCleaningTracker#track(File, Object, FileDeleteStrategy)}.
7273 */
74+ @ Deprecated
7375 public static void track (File file , Object marker , FileDeleteStrategy deleteStrategy ) {
7476 theInstance .track (file , marker , deleteStrategy );
7577 }
@@ -84,6 +86,7 @@ public static void track(File file, Object marker, FileDeleteStrategy deleteStra
8486 * @throws NullPointerException if the path is null
8587 * @deprecated Use {@link FileCleaningTracker#track(String, Object)}.
8688 */
89+ @ Deprecated
8790 public static void track (String path , Object marker ) {
8891 theInstance .track (path , marker );
8992 }
@@ -99,6 +102,7 @@ public static void track(String path, Object marker) {
99102 * @throws NullPointerException if the path is null
100103 * @deprecated Use {@link FileCleaningTracker#track(String, Object, FileDeleteStrategy)}.
101104 */
105+ @ Deprecated
102106 public static void track (String path , Object marker , FileDeleteStrategy deleteStrategy ) {
103107 theInstance .track (path , marker , deleteStrategy );
104108 }
@@ -111,6 +115,7 @@ public static void track(String path, Object marker, FileDeleteStrategy deleteSt
111115 * @return the number of files being tracked
112116 * @deprecated Use {@link FileCleaningTracker#getTrackCount()}.
113117 */
118+ @ Deprecated
114119 public static int getTrackCount () {
115120 return theInstance .getTrackCount ();
116121 }
@@ -137,6 +142,7 @@ public static int getTrackCount() {
137142 * One called, no new objects can be tracked by the file cleaner.
138143 * @deprecated Use {@link FileCleaningTracker#exitWhenFinished()}.
139144 */
145+ @ Deprecated
140146 public static synchronized void exitWhenFinished () {
141147 theInstance .exitWhenFinished ();
142148 }
0 commit comments