Skip to content

Commit

Permalink
Suppress a false positive.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Oct 10, 2021
1 parent 3a4185e commit 3501976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/Severity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import edu.hm.hafner.util.Ensure;
import edu.hm.hafner.util.StringContainsUtils;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Severity of an issue. The predefined set of severities consists of an error and 3 warnings with priorities high,
Expand Down Expand Up @@ -138,6 +139,7 @@ else if (WARNING_LOW.equals(minimumSeverity)) {
*
* @return all predefined severities
*/
@SuppressFBWarnings(value = "MS_EXPOSE_REP", justification = "False positive: https://github.com/spotbugs/spotbugs/issues/1747")
public static Set<Severity> getPredefinedValues() {
return ALL_SEVERITIES;
}
Expand Down

0 comments on commit 3501976

Please sign in to comment.