Bug 1170884 - valueOf instead of new in sync repo. r=nalexander
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 12 Jun 2015 11:18:31 -0700
changeset 248497 0d0244279602a0dd2cf8b04a6f58ca0b4a86820c
parent 248496 4b2df807614ee4b1ad4508de7044f2c604eaf714
child 248498 f89a37d280017bbce53fb6cc46584c372bd0b412
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 - valueOf instead of new in sync repo. r=nalexander
mobile/android/base/sync/config/AccountPickler.java
--- a/mobile/android/base/sync/config/AccountPickler.java
+++ b/mobile/android/base/sync/config/AccountPickler.java
@@ -97,18 +97,18 @@ public class AccountPickler {
    * @param filename name of file to persist to; must not contain path separators.
    * @param params the Sync account's parameters.
    * @param syncAutomatically whether the Android Account object is syncing automatically.
    */
   public static void pickle(final Context context, final String filename,
       final SyncAccountParameters params, final boolean syncAutomatically) {
     final ExtendedJSONObject o = params.asJSON();
     o.put(Constants.JSON_KEY_SYNC_AUTOMATICALLY, Boolean.valueOf(syncAutomatically));
-    o.put(Constants.JSON_KEY_VERSION, new Long(VERSION));
-    o.put(Constants.JSON_KEY_TIMESTAMP, new Long(System.currentTimeMillis()));
+    o.put(Constants.JSON_KEY_VERSION, Long.valueOf(VERSION));
+    o.put(Constants.JSON_KEY_TIMESTAMP, Long.valueOf(System.currentTimeMillis()));
 
     PrintStream ps = null;
     try {
       final FileOutputStream fos = context.openFileOutput(filename, Context.MODE_PRIVATE);
       ps = new PrintStream(fos);
       ps.print(o.toJSONString());
       Logger.debug(LOG_TAG, "Persisted " + o.keySet().size() + " account settings to " + filename + ".");
     } catch (Exception e) {