Skip to content

Commit b11083d

Browse files
committed
Only need 'this' in ctor and setters
1 parent b3ea80e commit b11083d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public CountingInputStream(final InputStream in) {
5252
@Override
5353
protected synchronized void afterRead(final int n) {
5454
if (n != EOF) {
55-
this.count += n;
55+
count += n;
5656
}
5757
}
5858

@@ -68,7 +68,7 @@ protected synchronized void afterRead(final int n) {
6868
* @since 1.3
6969
*/
7070
public synchronized long getByteCount() {
71-
return this.count;
71+
return count;
7272
}
7373

7474
/**
@@ -104,8 +104,8 @@ public int getCount() {
104104
* @since 1.3
105105
*/
106106
public synchronized long resetByteCount() {
107-
final long tmp = this.count;
108-
this.count = 0;
107+
final long tmp = count;
108+
count = 0;
109109
return tmp;
110110
}
111111

@@ -142,7 +142,7 @@ public int resetCount() {
142142
@Override
143143
public synchronized long skip(final long length) throws IOException {
144144
final long skip = super.skip(length);
145-
this.count += skip;
145+
count += skip;
146146
return skip;
147147
}
148148

0 commit comments

Comments
 (0)