Skip to content

Commit

Permalink
Removed some trivial warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Mar 25, 2020
1 parent 747ce01 commit eadbd6f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -999,9 +999,9 @@ public boolean handleQuit() {
// kill uploader (if still alive)
UploaderUtils uploaderInstance = new UploaderUtils();
Uploader uploader = uploaderInstance.getUploaderByPreferences(false);
if (uploader != null && uploader.programmerPid != null && uploader.programmerPid.isAlive()) {
if (uploader != null && Uploader.programmerPid != null && Uploader.programmerPid.isAlive()) {
// kill the stuck programmer
uploader.programmerPid.destroyForcibly();
Uploader.programmerPid.destroyForcibly();
}

if (handleQuitEach()) {
Expand Down Expand Up @@ -1444,8 +1444,9 @@ public void actionPerformed(ActionEvent actionevent) {
String filterText = "";
String dropdownItem = "";
if (actionevent instanceof Event) {
filterText = ((Event) actionevent).getPayload().get("filterText").toString();
dropdownItem = ((Event) actionevent).getPayload().get("dropdownItem").toString();
Event e = ((Event) actionevent);
filterText = e.getPayload().get("filterText").toString();
dropdownItem = e.getPayload().get("dropdownItem").toString();
}
try {
openBoardsManager(filterText, dropdownItem);
Expand Down Expand Up @@ -1612,7 +1613,7 @@ public void actionPerformed(ActionEvent e) {
};
List<TargetBoard> boards = (List<TargetBoard>) subAction.getValue("board");
if (boards == null) {
boards = new ArrayList<TargetBoard>();
boards = new ArrayList<>();
}
boards.add(board);
subAction.putValue("board", boards);
Expand Down Expand Up @@ -2013,6 +2014,7 @@ public void keyPressed(KeyEvent e) {
Base.this.handleFontSizeChange(-1);
}
break;
default:
}
}
}
Expand Down

0 comments on commit eadbd6f

Please sign in to comment.