Skip to content

Commit 9ce1dc4

Browse files
committed
Better parameter names
1 parent ade2814 commit 9ce1dc4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/apache/commons/imaging/bytesource/ByteSource.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public InputStream getInputStream() throws IOException {
7171
return origin.getInputStream();
7272
}
7373

74-
public final InputStream getInputStream(final long start) throws IOException {
74+
public final InputStream getInputStream(final long skip) throws IOException {
7575
InputStream is = null;
7676
boolean succeeded = false;
7777
try {
7878
is = getInputStream();
79-
BinaryFunctions.skipBytes(is, start);
79+
BinaryFunctions.skipBytes(is, skip);
8080
succeeded = true;
8181
} finally {
8282
if (!succeeded) {

src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ public static boolean searchQuad(final int quad, final InputStream bis) throws I
289289
return false;
290290
}
291291

292-
public static long skipBytes(final InputStream is, final long length) throws IOException {
293-
return skipBytes(is, length, "Couldn't skip bytes");
292+
public static long skipBytes(final InputStream is, final long skip) throws IOException {
293+
return skipBytes(is, skip, "Couldn't skip bytes");
294294
}
295295

296-
public static long skipBytes(final InputStream is, final long length, final String exMessage) throws IOException {
296+
public static long skipBytes(final InputStream is, final long skip, final String exMessage) throws IOException {
297297
try {
298-
return IOUtils.skip(is, length);
298+
return IOUtils.skip(is, skip);
299299
} catch (final IOException e) {
300300
throw new IOException(exMessage, e);
301301
}

0 commit comments

Comments
 (0)