Skip to content

Commit 1ef212e

Browse files
committed
No need for variables to be package protected
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1686512 13f79535-47bb-0310-9956-ffa450edef68
1 parent c7be7b4 commit 1ef212e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/main/java/org/apache/commons/io/FileCleaningTracker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ public class FileCleaningTracker {
4545
/**
4646
* Queue of <code>Tracker</code> instances being watched.
4747
*/
48-
ReferenceQueue<Object> q = new ReferenceQueue<Object>();
48+
private ReferenceQueue<Object> q = new ReferenceQueue<Object>();
4949
/**
5050
* Collection of <code>Tracker</code> instances in existence.
5151
*/
52-
final Collection<Tracker> trackers = Collections.synchronizedSet(new HashSet<Tracker>()); // synchronized
52+
private final Collection<Tracker> trackers = Collections.synchronizedSet(new HashSet<Tracker>()); // synchronized
5353
/**
5454
* Collection of File paths that failed to delete.
5555
*/
56-
final List<String> deleteFailures = Collections.synchronizedList(new ArrayList<String>());
56+
private final List<String> deleteFailures = Collections.synchronizedList(new ArrayList<String>());
5757
/**
5858
* Whether to terminate the thread when the tracking is complete.
5959
*/
60-
volatile boolean exitWhenFinished = false;
60+
private volatile boolean exitWhenFinished = false;
6161
/**
6262
* The thread that will clean up registered files.
6363
*/
64-
Thread reaper;
64+
private Thread reaper;
6565

6666
//-----------------------------------------------------------------------
6767
/**

src/main/java/org/apache/commons/io/input/BoundedReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public class BoundedReader
4242

4343
private final Reader target;
4444

45-
int charsRead = 0;
45+
private int charsRead = 0;
4646

47-
int markedAt = INVALID;
47+
private int markedAt = INVALID;
4848

49-
int readAheadLimit; // Internally, this value will never exceed the allowed size
49+
private int readAheadLimit; // Internally, this value will never exceed the allowed size
5050

5151
private final int maxCharsFromTargetReader;
5252

0 commit comments

Comments
 (0)