IDEA-186767 Magic constant: false positive for JFrame.EXIT_ON_CLOSE

This commit is contained in:
Alexey Kudravtsev
2018-03-01 14:09:00 +03:00
parent d5239ecb84
commit f6002904a7
3 changed files with 12 additions and 1 deletions
@@ -21,6 +21,9 @@ import javax.swing.*;
public class X {
void f(JFrame frame) {
frame.setDefaultCloseOperation(2); // there is beanInfo in in JFrame.java, have to parse (but added to exceptions, so ok)
// despite JFrame.EXIT_ON_CLOSE (incorrectly) not mentioned in beaninfo, we override it in our annotations.xml, see IDEA-186767
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
void f(Frame frame) {