Integer.valueOf() -> Integer.parseInt() to avoid allocation.

Bug: 28289401
Change-Id: If767f891644a06ba587f9bb55dccea4089a8c66d
This commit is contained in:
Tobias Thierer
2016-04-21 12:02:10 +01:00
parent 570a13f0cb
commit 9bbbf2b15f

View File

@@ -1168,7 +1168,7 @@ public final class PrintSpoolerService extends Service {
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);