Commit 57b29e71 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Tidy up uses of Integer.valueOf.

Use parseInt when the result is assigned to an int. Allocates fewer
objects.

bug: 28078871
Change-Id: I2c58112795fecce6395c558f2bb1e1fefe83a5bf
parent a8bbae54
......@@ -149,7 +149,7 @@ public class DownloadProviderFunctionalTest extends AbstractDownloadProviderFunc
}
protected int getDownloadStatus(Uri downloadUri) {
return Integer.valueOf(getDownloadField(downloadUri, Downloads.Impl.COLUMN_STATUS));
return Integer.parseInt(getDownloadField(downloadUri, Downloads.Impl.COLUMN_STATUS));
}
private String getDownloadFilename(Uri downloadUri) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment