Skip to content

Commit

Permalink
Enable DM_EXIT spotbugs rule for the full code base
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed Nov 15, 2019
1 parent b05a4bf commit 0e5ee07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions excludeFindBugsFilter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@
<!-- this problem is to be addressed in ZOOKEEPER-3227 -->
<Bug pattern="DM_DEFAULT_ENCODING"/>

<!-- not really a problem -->
<Bug pattern="DM_EXIT"/>

</FindBugsFilter>

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.zookeeper.util;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Objects;
import java.util.function.Consumer;
import org.apache.zookeeper.ZooKeeperMain;
Expand All @@ -37,6 +38,7 @@ private ServiceUtils() {
/**
* Default strategy for shutting down the JVM.
*/
@SuppressFBWarnings("DM_EXIT")
public static final Consumer<Integer> SYSTEM_EXIT = (code) -> {
LOG.error("Exiting JVM with code {}", code);
System.exit(code);
Expand Down

0 comments on commit 0e5ee07

Please sign in to comment.