Skip to content

Commit 121e2b4

Browse files
committed
Fixed minor code quality issues.
1 parent d771528 commit 121e2b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/joyent/hadoop/fs/manta/MantaFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public URI getUri() {
201201
}
202202

203203
@Override
204-
public FSDataInputStream open(final Path path, final int i) throws IOException {
204+
public FSDataInputStream open(final Path path, final int bufferSize) throws IOException {
205205
LOG.debug("Opening '{}' for reading.", path);
206206

207207
final FileStatus fileStatus = getFileStatus(path);

src/main/java/com/joyent/hadoop/fs/manta/MantaSeekableInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public boolean markSupported() {
148148
public synchronized int read(final long position, final byte[] buffer,
149149
final int offset, final int length) throws IOException {
150150
long oldPos = getPos();
151-
int nread = -1;
151+
int nread;
152152
try {
153153
seek(position);
154154
nread = read(buffer, offset, length);

0 commit comments

Comments
 (0)