Skip to content

Commit

Permalink
doc: Update docs for windowClosing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhwood committed Nov 4, 2019
1 parent 0680f71 commit 38c6696
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 38c6696

Please sign in to comment.