Skip to content

Commit 688cd98

Browse files
committed
Use final.
1 parent 07abbbb commit 688cd98

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class RandomAccessFileInputStream extends InputStream {
3737
*
3838
* @param file The file to stream.
3939
*/
40-
public RandomAccessFileInputStream(RandomAccessFile file) {
40+
public RandomAccessFileInputStream(final RandomAccessFile file) {
4141
this(file, false);
4242
}
4343

@@ -47,7 +47,7 @@ public RandomAccessFileInputStream(RandomAccessFile file) {
4747
* @param file The file to stream.
4848
* @param closeOnClose Whether to close the underlying file when this stream is closed.
4949
*/
50-
public RandomAccessFileInputStream(RandomAccessFile file, boolean closeOnClose) {
50+
public RandomAccessFileInputStream(final RandomAccessFile file, final boolean closeOnClose) {
5151
this.randomAccessFile = Objects.requireNonNull(file, "file");
5252
this.closeOnClose = closeOnClose;
5353
}
@@ -111,12 +111,12 @@ public int read() throws IOException {
111111
}
112112

113113
@Override
114-
public int read(byte[] bytes) throws IOException {
114+
public int read(final byte[] bytes) throws IOException {
115115
return randomAccessFile.read(bytes);
116116
}
117117

118118
@Override
119-
public int read(byte[] bytes, int offset, int length) throws IOException {
119+
public int read(final byte[] bytes, final int offset, final int length) throws IOException {
120120
return randomAccessFile.read(bytes, offset, length);
121121
}
122122

@@ -127,12 +127,12 @@ public int read(byte[] bytes, int offset, int length) throws IOException {
127127
* @throws IOException See {@link RandomAccessFile#seek(long)}.
128128
* @see RandomAccessFile#seek(long)
129129
*/
130-
private void seek(long position) throws IOException {
130+
private void seek(final long position) throws IOException {
131131
randomAccessFile.seek(position);
132132
}
133133

134134
@Override
135-
public long skip(long skipCount) throws IOException {
135+
public long skip(final long skipCount) throws IOException {
136136
if (skipCount <= 0) {
137137
return 0;
138138
}

0 commit comments

Comments
 (0)