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 2021/01/31 15:27:17 UTC
[commons-io] branch master updated: No need to call super;
remove 'p' prefix.
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 5682b29 No need to call super; remove 'p' prefix.
5682b29 is described below
commit 5682b29e01da5bc64399053b0160ecf77a5532f6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 31 10:27:12 2021 -0500
No need to call super; remove 'p' prefix.
---
.../commons/io/input/ObservableInputStreamTest.java | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java b/src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java
index 91c30a4..152c866 100644
--- a/src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java
@@ -37,19 +37,16 @@ public class ObservableInputStreamTest {
@Override
public void closed() throws IOException {
- super.closed();
closed = true;
}
@Override
- public void data(final int pByte) throws IOException {
- super.data(pByte);
- lastByteSeen = pByte;
+ public void data(final int value) throws IOException {
+ lastByteSeen = value;
}
@Override
public void finished() throws IOException {
- super.finished();
finished = true;
}
}
@@ -60,11 +57,10 @@ public class ObservableInputStreamTest {
private int length = -1;
@Override
- public void data(final byte[] pBuffer, final int pOffset, final int pLength) throws IOException {
- super.data(pBuffer, pOffset, pLength);
- buffer = pBuffer;
- offset = pOffset;
- length = pLength;
+ public void data(final byte[] buffer, final int offset, final int length) throws IOException {
+ this.buffer = buffer;
+ this.offset = offset;
+ this.length = length;
}
}