@@ -56,10 +56,7 @@ public class Configuration implements Configurable
56
56
private final Map <Action , JCheckBox > checkboxes = new EnumMap <>(Action .class );
57
57
private final ActionListener checkboxActionListener = this ::updateCheckboxEnabled ;
58
58
59
- private GeneralPanel generalPanel ;
60
- private FormattingPanel formattingPanel ;
61
59
private BuildPanel buildPanel ;
62
- private InspectionPanel inspectionPanel ;
63
60
private FileMaskPanel fileMasksExclusionPanel ;
64
61
private FileMaskPanel fileMasksInclusionPanel ;
65
62
private IdeSupportPanel ideSupport ;
@@ -159,10 +156,7 @@ public void disposeUIResources()
159
156
this .exclusions .clear ();
160
157
this .inclusions .clear ();
161
158
this .quickLists .clear ();
162
- this .generalPanel = null ;
163
- this .formattingPanel = null ;
164
159
this .buildPanel = null ;
165
- this .inspectionPanel = null ;
166
160
this .fileMasksInclusionPanel = null ;
167
161
this .fileMasksExclusionPanel = null ;
168
162
this .ideSupport = null ;
@@ -188,18 +182,18 @@ private JPanel initComponent()
188
182
{
189
183
this .checkboxes .put (action , new JCheckBox (action .getText ()));
190
184
}
191
- this . generalPanel = new GeneralPanel (this .checkboxes );
192
- this . formattingPanel = new FormattingPanel (this .checkboxes );
185
+ final GeneralPanel generalPanel = new GeneralPanel (this .checkboxes );
186
+ final FormattingPanel formattingPanel = new FormattingPanel (this .checkboxes );
193
187
this .buildPanel = new BuildPanel (this .checkboxes , this .quickLists );
194
- this . inspectionPanel = new InspectionPanel (this .checkboxes );
188
+ final InspectionPanel inspectionPanel = new InspectionPanel (this .checkboxes );
195
189
this .fileMasksInclusionPanel = new FileMaskInclusionPanel (this .inclusions );
196
190
this .fileMasksExclusionPanel = new FileMaskExclusionPanel (this .exclusions );
197
191
this .ideSupport = new IdeSupportPanel ();
198
192
return this .initRootPanel (
199
- this . generalPanel .getPanel (),
200
- this . formattingPanel .getPanel (),
193
+ generalPanel .getPanel (),
194
+ formattingPanel .getPanel (),
201
195
this .buildPanel .getPanel (),
202
- this . inspectionPanel .getPanel (),
196
+ inspectionPanel .getPanel (),
203
197
this .fileMasksInclusionPanel .getPanel (),
204
198
this .fileMasksExclusionPanel .getPanel (),
205
199
this .ideSupport .getPanel (this .storage .getConfigurationPath ())
@@ -208,8 +202,12 @@ private JPanel initComponent()
208
202
209
203
@ SuppressWarnings ("checkstyle:MagicNumber" )
210
204
private JPanel initRootPanel (
211
- final JPanel general , final JPanel actions , final JPanel build , final JPanel inspections ,
212
- final JPanel fileMasksInclusions , final JPanel fileMasksExclusions ,
205
+ final JPanel general ,
206
+ final JPanel actions ,
207
+ final JPanel build ,
208
+ final JPanel inspections ,
209
+ final JPanel fileMasksInclusions ,
210
+ final JPanel fileMasksExclusions ,
213
211
final JPanel ideSupport )
214
212
{
215
213
final JPanel panel = new JPanel ();
0 commit comments