Skip to content

Commit

Permalink
Suppress SpotBugs warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 14, 2025
1 parent fbf4443 commit 929234f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/edu/hm/hafner/coverage/ValueTest.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 929234f

Please sign in to comment.