Bug 1170884 - Replace "new Integer" with "Integer.valueOf". r=nalexander
authorMichael Comella <michael.l.comella@gmail.com>
Thu, 11 Jun 2015 12:25:27 -0700
changeset 248496 4b2df807614ee4b1ad4508de7044f2c604eaf714
parent 248495 c7eec18f6d2b408f193599d7b2ba51e01cc07b21
child 248497 0d0244279602a0dd2cf8b04a6f58ca0b4a86820c
push id13527
push usermichael.l.comella@gmail.com
push dateFri, 12 Jun 2015 18:23:28 +0000
treeherderfx-team@0d0244279602 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1170884
milestone41.0a1
Bug 1170884 - Replace "new Integer" with "Integer.valueOf". r=nalexander
mobile/android/base/GeckoAppShell.java
--- a/mobile/android/base/GeckoAppShell.java
+++ b/mobile/android/base/GeckoAppShell.java
@@ -1768,17 +1768,17 @@ public class GeckoAppShell
 
             // alright, the rest are open file entries.
             Map<Integer, String> pidNameMap = new TreeMap<Integer, String>();
             String output = null;
             while ((output = in.readLine()) != null) {
                 String[] split = output.split("\\s+");
                 if (split.length <= pidColumn || split.length <= nameColumn)
                     continue;
-                Integer pid = new Integer(split[pidColumn]);
+                final Integer pid = Integer.valueOf(split[pidColumn]);
                 String name = pidNameMap.get(pid);
                 if (name == null) {
                     name = getAppNameByPID(pid.intValue());
                     pidNameMap.put(pid, name);
                 }
                 String file = split[nameColumn];
                 if (!TextUtils.isEmpty(name) && !TextUtils.isEmpty(file) && file.startsWith(filter))
                     Log.d(LOGTAG, "[OPENFILE] " + name + "(" + split[pidColumn] + ") : " + file);