From c6ef678b77cb096e994033b56ab021bd3d0adaa3 Mon Sep 17 00:00:00 2001 From: Lee Rhodes Date: Mon, 29 Jul 2024 13:18:59 -0700 Subject: [PATCH] Update SpotBugs Filter, Made AllocateDirectWritableMap final. Added "default" to MurmurHash3v2 switch. --- .../datasketches/memory/MurmurHash3v2.java | 2 +- .../internal/AllocateDirectWritableMap.java | 2 +- tools/FindBugsExcludeFilter.xml | 71 ++----------------- 3 files changed, 6 insertions(+), 69 deletions(-) diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java index 7d6136d3..6e328ccb 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/MurmurHash3v2.java @@ -299,7 +299,7 @@ public static long[] hash( k1 ^= (unsafe.getByte(uObj, cumOff) & 0xFFL); break; } - //default: break; //can't happen + default: break; //can't happen } h1 ^= mixK1(k1); diff --git a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMap.java b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMap.java index 41fb014c..f461c6f6 100644 --- a/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMap.java +++ b/datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/internal/AllocateDirectWritableMap.java @@ -50,7 +50,7 @@ * @author Praveenkumar Venkatesan */ @SuppressWarnings("restriction") -class AllocateDirectWritableMap { +final class AllocateDirectWritableMap { static final Logger LOG = Logger.getLogger(AllocateDirectWritableMap.class.getCanonicalName()); private static final int MAP_RO = 0; diff --git a/tools/FindBugsExcludeFilter.xml b/tools/FindBugsExcludeFilter.xml index ae683891..166ef4b2 100644 --- a/tools/FindBugsExcludeFilter.xml +++ b/tools/FindBugsExcludeFilter.xml @@ -21,76 +21,13 @@ under the License. - + - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - -