Skip to content

Commit

Permalink
Remove unnecessary SpotBugs exclusions (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Nov 22, 2022
1 parent b088898 commit 5b17d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ProtectedExternally extends None {

@Override
@SuppressFBWarnings(
value={"RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE","RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", "NP_LOAD_OF_KNOWN_NULL_VALUE"},
value={"RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE", "NP_LOAD_OF_KNOWN_NULL_VALUE"},
justification="something in this class confuses spotbugs, I can't see anything redundant and the error line is the catch block")
public void invoked(Location loc, RestrictedElement target, ErrorListener errorListener) {
if (target.isInTheInspectedModule()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ public class EnforcerMojo extends AbstractMojo {

@Override
@SuppressFBWarnings(value = {
"UWF_UNWRITTEN_FIELD",
"URLCONNECTION_SSRF_FD",
"UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD",
"PATH_TRAVERSAL_IN",
"DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED",
"NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD"
"DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED"
})
public void execute() throws MojoExecutionException, MojoFailureException {
if (skip) {
Expand Down

0 comments on commit 5b17d5e

Please sign in to comment.