Skip to content

Commit 1690ce2

Browse files
committed
Removed some trivial warnings
1 parent 9ffe1e2 commit 1690ce2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/src/processing/app/Base.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ public boolean handleQuit() {
999999
// kill uploader (if still alive)
10001000
UploaderUtils uploaderInstance = new UploaderUtils();
10011001
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()) {
10031003
// kill the stuck programmer
1004-
uploader.programmerPid.destroyForcibly();
1004+
Uploader.programmerPid.destroyForcibly();
10051005
}
10061006

10071007
if (handleQuitEach()) {
@@ -1444,8 +1444,9 @@ public void actionPerformed(ActionEvent actionevent) {
14441444
String filterText = "";
14451445
String dropdownItem = "";
14461446
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();
14491450
}
14501451
try {
14511452
openBoardsManager(filterText, dropdownItem);
@@ -1605,7 +1606,7 @@ public void actionPerformed(ActionEvent e) {
16051606
};
16061607
List<TargetBoard> boards = (List<TargetBoard>) subAction.getValue("board");
16071608
if (boards == null) {
1608-
boards = new ArrayList<TargetBoard>();
1609+
boards = new ArrayList<>();
16091610
}
16101611
boards.add(board);
16111612
subAction.putValue("board", boards);
@@ -2006,6 +2007,7 @@ public void keyPressed(KeyEvent e) {
20062007
Base.this.handleFontSizeChange(-1);
20072008
}
20082009
break;
2010+
default:
20092011
}
20102012
}
20112013
}

0 commit comments

Comments
 (0)