Skip to content

Commit

Permalink
Remove unneeded boxing/unboxing
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 23, 2020
1 parent 1461096 commit f6e8a9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public synchronized void write(int data) throws IOException { // expected diff w
} else if (data == SECOND_OSC_CHAR) {
state = LOOKING_FOR_OSC_COMMAND;
} else if (data == SECOND_CHARSET0_CHAR) {
options.add(Integer.valueOf(0));
options.add(0);
state = LOOKING_FOR_CHARSET;
} else if (data == SECOND_CHARSET1_CHAR) {
options.add(Integer.valueOf(1));
options.add(1);
state = LOOKING_FOR_CHARSET;
} else {
reset(false);
Expand Down Expand Up @@ -210,7 +210,7 @@ public synchronized void write(int data) throws IOException { // expected diff w
break;

case LOOKING_FOR_CHARSET:
options.add(Character.valueOf((char) data));
options.add((char) data);
reset(ap.processCharsetSelect(options));
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected synchronized boolean filter(int data) { // expected diff with AnsiOutp
break;

case LOOKING_FOR_CHARSET:
options.add(Character.valueOf((char) data));
options.add((char) data);
reset(ap.processCharsetSelect(options));
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ protected boolean processOperatingSystemCommand(ArrayList<Object> options) { //
*/
protected boolean processCharsetSelect(ArrayList<Object> options) {
int set = optionInt(options, 0);
char seq = ((Character) options.get(1)).charValue();
char seq = (Character) options.get(1);
processCharsetSelect(set, seq);
return true;
}
Expand Down

0 comments on commit f6e8a9a

Please sign in to comment.