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

Commit

Permalink
Bugfix/fix java8 buffers (#17)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Jan 27, 2023
1 parent e92fd09 commit 1804d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/sonar/plugins/its/utils/FileIOUtil.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***********************************************************
* Copyright 2022 VMware, Inc.
* Copyright 2023 VMware, Inc.
* SPDX-License-Identifier: BSD-2
***********************************************************/
package org.sonar.plugins.its.utils;
Expand Down Expand Up @@ -44,7 +44,7 @@ public static String readFileAsString(final Path path, final int failWhenCharact
LOG.warn("Its scanner (RequiredStringNotPresentRegexMatchCheck) maximum scan depth ( " + (failWhenCharacterCountExceeds-1) + " chars) encountered for file '" + path.toFile().getAbsolutePath() + "'. Did not check this file AT ALL.");
throw new LargeFileEncounteredException();
} else {
fileContentBuffer.flip();
((Buffer)fileContentBuffer).flip();
}

} catch (BufferOverflowException ex) {
Expand Down

0 comments on commit 1804d70

Please sign in to comment.