From 929234fe837d48d5e1343e1ea83534f1890c214b Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Fri, 14 Feb 2025 17:17:16 +0100 Subject: [PATCH] Suppress SpotBugs warning. --- src/test/java/edu/hm/hafner/coverage/ValueTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/edu/hm/hafner/coverage/ValueTest.java b/src/test/java/edu/hm/hafner/coverage/ValueTest.java index 4a8c66a7..e60b614c 100644 --- a/src/test/java/edu/hm/hafner/coverage/ValueTest.java +++ b/src/test/java/edu/hm/hafner/coverage/ValueTest.java @@ -1,5 +1,7 @@ package edu.hm.hafner.coverage; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + import java.util.List; import java.util.Locale; import java.util.NoSuchElementException; @@ -159,6 +161,7 @@ void shouldThrowExceptionOnInvalidStringRepresentation() { } @Test + @SuppressFBWarnings(value = "RV_RETURN_VALUE_IGNORED_BAD_PRACTICE", justification = "Exception is thrown anyway") @SuppressWarnings("ResultOfMethodCallIgnored") void shouldThrowExceptionWhenUsingDifferentType() { var linesOfCode = new Value(Metric.LOC, 10);