Skip to content

Commit

Permalink
FindBugs: GuiListener is eligible to call exit() (DM_EXIT)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Aug 6, 2016
1 parent c552eb4 commit 31423f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/hudson/remoting/jnlp/GuiListener.java
Expand Up @@ -23,6 +23,7 @@
*/
package hudson.remoting.jnlp;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import hudson.remoting.EngineListener;
Expand Down Expand Up @@ -59,6 +60,7 @@ public void run() {
});
}

@SuppressFBWarnings(value = "DM_EXIT", justification = "This is an error handler for GUI, exit is valid")
public void error(final Throwable t) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Expand Down

0 comments on commit 31423f9

Please sign in to comment.