Skip to content

Commit eadbd6f

Browse files
committed
Removed some trivial warnings
1 parent 747ce01 commit eadbd6f

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);
@@ -1612,7 +1613,7 @@ public void actionPerformed(ActionEvent e) {
16121613
};
16131614
List<TargetBoard> boards = (List<TargetBoard>) subAction.getValue("board");
16141615
if (boards == null) {
1615-
boards = new ArrayList<TargetBoard>();
1616+
boards = new ArrayList<>();
16161617
}
16171618
boards.add(board);
16181619
subAction.putValue("board", boards);
@@ -2013,6 +2014,7 @@ public void keyPressed(KeyEvent e) {
20132014
Base.this.handleFontSizeChange(-1);
20142015
}
20152016
break;
2017+
default:
20162018
}
20172019
}
20182020
}

0 commit comments

Comments
 (0)