Skip to content

Commit 4f9cd2a

Browse files
committed
Cast fix from sonar
1 parent 2f118bc commit 4f9cd2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/BufferedReaderBytesRead.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public class BufferedReaderBytesRead extends Reader {
7676
private boolean skipLF = false;
7777
/** The skipLF flag when the mark was set */
7878
private boolean markedSkipLF = false;
79-
private static int defaultCharBufferSize = 8192;
80-
private static int defaultExpectedLineLength = 80;
79+
private static final int defaultCharBufferSize = 8192;
80+
private static final int defaultExpectedLineLength = 80;
8181
long bytesRead = 0;
8282

8383
/**
@@ -451,7 +451,7 @@ public long skip(long n) throws IOException {
451451
nextChar++;
452452
}
453453
}
454-
long d = nChars - nextChar;
454+
long d = (long)nChars - nextChar;
455455
if (r <= d) {
456456
nextChar += r;
457457
r = 0;

0 commit comments

Comments
 (0)