mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-161205 Constant conditions & exceptions: Cannot re-enable option
This commit is contained in:
@@ -146,11 +146,11 @@ public class DataFlowInspection extends DataFlowInspectionBase {
|
||||
});
|
||||
|
||||
myReportNullArguments = new JCheckBox("Report 'null' literals passed to not-null required parameter");
|
||||
myTreatUnknownMembersAsNullable.setSelected(REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER);
|
||||
myTreatUnknownMembersAsNullable.getModel().addChangeListener(new ChangeListener() {
|
||||
myReportNullArguments.setSelected(REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER);
|
||||
myReportNullArguments.getModel().addChangeListener(new ChangeListener() {
|
||||
@Override
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myTreatUnknownMembersAsNullable.isSelected();
|
||||
REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myReportNullArguments.isSelected();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user