Skip to content

Commit

Permalink
Integer.valueOf() -> Integer.parseInt() to avoid allocation.
Browse files Browse the repository at this point in the history
Bug: 28289401
Change-Id: If767f891644a06ba587f9bb55dccea4089a8c66d
  • Loading branch information
15characterlimi authored and nychitman1 committed Jan 23, 2017
1 parent 5adc793 commit 6595830
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ private boolean parsePrintJob(XmlPullParser parser)
if (TYPE_STRING.equals(type)) {
advancedOptions.putString(key, value);
} else if (TYPE_INT.equals(type)) {
advancedOptions.putInt(key, Integer.valueOf(value));
advancedOptions.putInt(key, Integer.parseInt(value));
}
parser.next();
skipEmptyTextTags(parser);
Expand Down

0 comments on commit 6595830

Please sign in to comment.