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 248698 4b2df807614ee4b1ad4508de7044f2c604eaf714
parent 248697 c7eec18f6d2b408f193599d7b2ba51e01cc07b21
child 248699 0d0244279602a0dd2cf8b04a6f58ca0b4a86820c
push id28903
push userphilringnalda@gmail.com
push dateSun, 14 Jun 2015 01:32:39 +0000
treeherdermozilla-central@e3ab171ddd37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1170884
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);