@@ -999,9 +999,9 @@ public boolean handleQuit() {
999
999
// kill uploader (if still alive)
1000
1000
UploaderUtils uploaderInstance = new UploaderUtils ();
1001
1001
Uploader uploader = uploaderInstance .getUploaderByPreferences (false );
1002
- if (uploader != null && uploader .programmerPid != null && uploader .programmerPid .isAlive ()) {
1002
+ if (uploader != null && Uploader .programmerPid != null && Uploader .programmerPid .isAlive ()) {
1003
1003
// kill the stuck programmer
1004
- uploader .programmerPid .destroyForcibly ();
1004
+ Uploader .programmerPid .destroyForcibly ();
1005
1005
}
1006
1006
1007
1007
if (handleQuitEach ()) {
@@ -1444,8 +1444,9 @@ public void actionPerformed(ActionEvent actionevent) {
1444
1444
String filterText = "" ;
1445
1445
String dropdownItem = "" ;
1446
1446
if (actionevent instanceof Event ) {
1447
- filterText = ((Event ) actionevent ).getPayload ().get ("filterText" ).toString ();
1448
- dropdownItem = ((Event ) actionevent ).getPayload ().get ("dropdownItem" ).toString ();
1447
+ Event e = ((Event ) actionevent );
1448
+ filterText = e .getPayload ().get ("filterText" ).toString ();
1449
+ dropdownItem = e .getPayload ().get ("dropdownItem" ).toString ();
1449
1450
}
1450
1451
try {
1451
1452
openBoardsManager (filterText , dropdownItem );
@@ -1481,7 +1482,7 @@ public void actionPerformed(ActionEvent actionevent) {
1481
1482
ButtonGroup boardsButtonGroup = new ButtonGroup ();
1482
1483
Map <String , ButtonGroup > buttonGroupsMap = new HashMap <>();
1483
1484
1484
- List <JMenu > platformMenus = new ArrayList <JMenu >();
1485
+ List <JMenu > platformMenus = new ArrayList <>();
1485
1486
1486
1487
// Cycle through all packages
1487
1488
for (TargetPackage targetPackage : BaseNoGui .packages .values ()) {
@@ -1602,7 +1603,7 @@ public void actionPerformed(ActionEvent e) {
1602
1603
};
1603
1604
List <TargetBoard > boards = (List <TargetBoard >) subAction .getValue ("board" );
1604
1605
if (boards == null ) {
1605
- boards = new ArrayList <TargetBoard >();
1606
+ boards = new ArrayList <>();
1606
1607
}
1607
1608
boards .add (board );
1608
1609
subAction .putValue ("board" , boards );
@@ -2003,6 +2004,7 @@ public void keyPressed(KeyEvent e) {
2003
2004
Base .this .handleFontSizeChange (-1 );
2004
2005
}
2005
2006
break ;
2007
+ default :
2006
2008
}
2007
2009
}
2008
2010
}
0 commit comments