Skip to content

Commit

Permalink
Fix FindBugs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leerho committed Apr 9, 2019
1 parent bbfad24 commit b0610d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/yahoo/memory/AllocateDirectMap.java
Expand Up @@ -228,7 +228,7 @@ static boolean isFileReadOnly(final File file) {
try (RandomAccessFile raf = new RandomAccessFile(file, "rw")) {
raf.close();
return false;
} catch (final Exception e) { //could not open for write
} catch (final SecurityException | IOException f) { //could not open for write
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/yahoo/memory/XxHash64LoopingTest.java
Expand Up @@ -35,7 +35,7 @@ public void testWithSeed() {
* <a href="https://github.com/OpenHFT/Zero-Allocation-Hashing/blob/master/src/test/java/net/openhft/hashing/XxHashTest.java">
* OpenHFT/Zero-Allocation-Hashing</a> to test hash compatibility with that implementation.
*/
public static final long[] HASHES_OF_LOOPING_BYTES_WITH_SEED_42 = {
private static final long[] HASHES_OF_LOOPING_BYTES_WITH_SEED_42 = {
-7444071767201028348L,
-8959994473701255385L,
7116559933691734543L,
Expand Down

0 comments on commit b0610d6

Please sign in to comment.