diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DroppedException.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DroppedException.java index e4f8e95eaaa..0289b5484d2 100644 --- a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DroppedException.java +++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DroppedException.java @@ -104,6 +104,7 @@ private int getUnsignedShort(byte[] a, int i) { return asUnsignedByte(a[i]) << 8 | asUnsignedByte(a[i + 1]); } + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "UC_USELESS_CONDITION", justification = "To be fixed in SpotBugs 4.0.0, see https://github.com/spotbugs/spotbugs/issues/84") @Override public void visit(Code obj) { diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DumbMethods.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DumbMethods.java index 4c8fc55e3e2..ef83581aa76 100644 --- a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DumbMethods.java +++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/DumbMethods.java @@ -643,6 +643,7 @@ public void visit(Method method) { MethodDescriptor previousMethodCall = null; + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS", justification = "False positive, see https://github.com/spotbugs/spotbugs/issues/87") @Override public void sawOpcode(int seen) { diff --git a/spotbugs/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java b/spotbugs/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java index 2708560fe02..e4486ec7f70 100644 --- a/spotbugs/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java +++ b/spotbugs/src/test/java/edu/umd/cs/findbugs/ba/npe/IsNullValueTest.java @@ -37,6 +37,7 @@ public void testMerge3() { assertFalse(nsp.isException()); } + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "Test is disabled, would need to be fixed anyway") @Ignore @Test public void testMerge4() { diff --git a/spotbugs/src/test/java/edu/umd/cs/findbugs/gui2/SaveTypeTest.java b/spotbugs/src/test/java/edu/umd/cs/findbugs/gui2/SaveTypeTest.java index fb5fdda3c6c..070918e4adc 100644 --- a/spotbugs/src/test/java/edu/umd/cs/findbugs/gui2/SaveTypeTest.java +++ b/spotbugs/src/test/java/edu/umd/cs/findbugs/gui2/SaveTypeTest.java @@ -33,6 +33,7 @@ private void check(SaveType type, String file) { assertEquals(type, SaveType.forFile(new File(file))); } + @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "DMI_HARDCODED_ABSOLUTE_FILENAME", justification = "No actual disk access, just fake paths for testing") @Test public void testSaveTypes() { check(SaveType.HTML_OUTPUT, "/home/pugh/bugs.html");