Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 72b6af4

Browse files
authored
Fix support for java 8. (#10)
Signed-off-by: Nikolay Chakarov <[email protected]>
1 parent d1a14da commit 72b6af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/sonar/plugins/its/utils/FileIOUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static String readFileAsString(final Path path, final int failWhenCharact
4444
LOG.warn("Its scanner (RequiredStringNotPresentRegexMatchCheck) maximum scan depth ( " + (failWhenCharacterCountExceeds-1) + " chars) encountered for file '" + path.toFile().getAbsolutePath() + "'. Did not check this file AT ALL.");
4545
throw new LargeFileEncounteredException();
4646
} else {
47-
((Buffer)fileContentBuffer).flip();
47+
fileContentBuffer.flip();
4848
}
4949

5050
} catch (BufferOverflowException ex) {

0 commit comments

Comments
 (0)