diff --git a/java/src/jmri/util/JmriJFrame.java b/java/src/jmri/util/JmriJFrame.java index a9260937260..b6106354efc 100644 --- a/java/src/jmri/util/JmriJFrame.java +++ b/java/src/jmri/util/JmriJFrame.java @@ -1,6 +1,5 @@ package jmri.util; -import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import javax.annotation.OverridingMethodsMustInvokeSuper; import java.awt.Dimension; import java.awt.Frame; @@ -733,7 +732,6 @@ public boolean getModifiedFlag() { * Handle closing a window or quiting the program while the modified bit was * set. */ - @SuppressFBWarnings(value = "LI_LAZY_INIT_STATIC", justification = "modified is only on Swing thread") protected void handleModified() { if (getModifiedFlag()) { this.setVisible(true); @@ -792,7 +790,11 @@ public void windowIconified(java.awt.event.WindowEvent e) { public void windowDeiconified(java.awt.event.WindowEvent e) { } - /** Does nothing in this class */ + /** + * {@inheritDoc} + * + * The JmriJFrame implementation calls {@link #handleModified()}. + */ @Override public void windowClosing(java.awt.event.WindowEvent e) { handleModified();