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

Commit 1804d70

Browse files
nchakarovvmwNikolay Chakarovemyasarvmw
authored
Bugfix/fix java8 buffers (#17)
* Fix comments regex. Signed-off-by: Nikolay Chakarov <[email protected]> * Fix buffers flipping. Signed-off-by: Nikolay Chakarov <[email protected]> * Update FileIOUtil.java Signed-off-by: Nikolay Chakarov <[email protected]> Signed-off-by: Nikolay Chakarov <[email protected]> Co-authored-by: Nikolay Chakarov <[email protected]> Co-authored-by: Emrah Yasar <[email protected]>
1 parent e92fd09 commit 1804d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/***********************************************************
2-
* Copyright 2022 VMware, Inc.
2+
* Copyright 2023 VMware, Inc.
33
* SPDX-License-Identifier: BSD-2
44
***********************************************************/
55
package org.sonar.plugins.its.utils;
@@ -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-
fileContentBuffer.flip();
47+
((Buffer)fileContentBuffer).flip();
4848
}
4949

5050
} catch (BufferOverflowException ex) {

0 commit comments

Comments
 (0)