Skip to content

Commit 7cc1ede

Browse files
committed
Sort members
1 parent d4d2573 commit 7cc1ede

4 files changed

Lines changed: 196 additions & 196 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ public int read(final char[] cbuf, final int off, final int len) throws IOExcept
118118
return len;
119119
}
120120

121-
@Override
122-
public long skip(long n) throws IOException {
123-
charsRead += n;
124-
return super.skip(n);
125-
}
126-
127121
/**
128122
* Resets the target to the latest mark,
129123
*
@@ -135,4 +129,10 @@ public void reset() throws IOException {
135129
charsRead = markedAt;
136130
super.reset();
137131
}
132+
133+
@Override
134+
public long skip(long n) throws IOException {
135+
charsRead += n;
136+
return super.skip(n);
137+
}
138138
}

src/test/java/org/apache/commons/io/build/URIOriginTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ static String[] fixtures() {
6161
};
6262
}
6363

64-
private void checkRead(final InputStream in) throws IOException {
65-
assertNotEquals(-1, in.read());
66-
}
67-
6864
private void checkRead(final Channel in, final Supplier<String> message) throws IOException {
6965
if (in instanceof ReadableByteChannel) {
7066
final ReadableByteChannel rbc = (ReadableByteChannel) in;
7167
assertNotEquals(-1, rbc.read(ByteBuffer.allocate(1)), message);
7268
}
7369
}
7470

71+
private void checkRead(final InputStream in) throws IOException {
72+
assertNotEquals(-1, in.read());
73+
}
74+
7575
@Override
7676
protected URIOrigin newOriginRo() {
7777
return new URIOrigin(Paths.get(FILE_NAME_RO).toUri());

0 commit comments

Comments
 (0)