From d1c8b4490ca5c9ecb6fd01c9033e33fb066a84e5 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Sun, 15 Oct 2023 15:36:00 -0400 Subject: [PATCH] [config] Update spotbugs baseline files with newly uncovered hashCode fix in 4.8.0 --- .../baseline/spotbugs-baseline-other.xml | 29 ++++++++++++++++++- .../resources/baseline/spotbugs-baseline.xml | 29 ++++++++++++++++++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline-other.xml b/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline-other.xml index 34ce0c6a..5740fd5e 100644 --- a/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline-other.xml +++ b/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline-other.xml @@ -16,7 +16,7 @@ limitations under the License. --> - + Bad comparison of signed byte Bad comparison of signed byte with 200 in AssumeUnsignedBytes.find200(byte[]) @@ -54,6 +54,33 @@ At UseOfNonHashableClassInHashDataStructure.java:[line 16] + + Use of class without a hashCode() method in a hashed data structure + UseOfNonHashableClassInHashDataStructure doesn't define a hashCode() method but is used in a hashed data structure in UseOfNonHashableClassInHashDataStructure.get(UseOfNonHashableClassInHashDataStructure) + + + At UseOfNonHashableClassInHashDataStructure.java:[lines 3-24] + + In class UseOfNonHashableClassInHashDataStructure + + + + In method UseOfNonHashableClassInHashDataStructure.get(UseOfNonHashableClassInHashDataStructure) + + + + At UseOfNonHashableClassInHashDataStructure.java:[lines 3-24] + + Unhashable class UseOfNonHashableClassInHashDataStructure + + + + Called method java.util.HashMap.get(Object) + + + At UseOfNonHashableClassInHashDataStructure.java:[line 24] + + Signature declares use of unhashable class in hashed construct UseOfNonHashableClassInHashDataStructure doesn't define a hashCode() method but it is used in a hashed context in UseOfNonHashableClassInHashDataStructure$UMap diff --git a/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline.xml b/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline.xml index 51124a2b..d1b84e29 100644 --- a/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline.xml +++ b/src/it-tools/build-tools/src/main/resources/baseline/spotbugs-baseline.xml @@ -16,7 +16,7 @@ limitations under the License. --> - + Doomed attempt to append to an object output stream Doomed attempt to append to an object output stream in AppendingToAnObjectOutputStream.appendObject1(File, Object) @@ -122,6 +122,33 @@ At UseOfNonHashableClassInHashDataStructure.java:[line 16] + + Use of class without a hashCode() method in a hashed data structure + UseOfNonHashableClassInHashDataStructure doesn't define a hashCode() method but is used in a hashed data structure in UseOfNonHashableClassInHashDataStructure.get(UseOfNonHashableClassInHashDataStructure) + + + At UseOfNonHashableClassInHashDataStructure.java:[lines 3-24] + + In class UseOfNonHashableClassInHashDataStructure + + + + In method UseOfNonHashableClassInHashDataStructure.get(UseOfNonHashableClassInHashDataStructure) + + + + At UseOfNonHashableClassInHashDataStructure.java:[lines 3-24] + + Unhashable class UseOfNonHashableClassInHashDataStructure + + + + Called method java.util.HashMap.get(Object) + + + At UseOfNonHashableClassInHashDataStructure.java:[line 24] + + Signature declares use of unhashable class in hashed construct UseOfNonHashableClassInHashDataStructure doesn't define a hashCode() method but it is used in a hashed context in UseOfNonHashableClassInHashDataStructure$UMap