No need to call super; remove 'p' prefix.
MODIFY
src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java
src/test/java/org/apache/commons/io/input/ObservableInputStreamTest.java
@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 void finished() throws IOException {
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;
}
}

No need to call super; remove 'p' prefix.