Bug 1252557 - Suppress ParcelCreator in AndroidFxAccount. r=nalexander draft
authorMichael Comella <michael.l.comella@gmail.com>
Tue, 01 Mar 2016 11:10:20 -0800
changeset 335852 c5b3348c900be8b399d774f60a623bda2ece0e74
parent 335851 d556e26607e6ad6c9d005f2d67e2d4b689cb9695
child 335873 f874e79bc021c3ffadc0734c5678b4e7e6a5820f
push id11894
push usermichael.l.comella@gmail.com
push dateTue, 01 Mar 2016 19:10:40 +0000
reviewersnalexander
bugs1252557
milestone47.0a1
Bug 1252557 - Suppress ParcelCreator in AndroidFxAccount. r=nalexander MozReview-Commit-ID: B2YEmQNBWTz
mobile/android/services/src/main/java/org/mozilla/gecko/fxa/authenticator/AndroidFxAccount.java
--- a/mobile/android/services/src/main/java/org/mozilla/gecko/fxa/authenticator/AndroidFxAccount.java
+++ b/mobile/android/services/src/main/java/org/mozilla/gecko/fxa/authenticator/AndroidFxAccount.java
@@ -1,16 +1,17 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package org.mozilla.gecko.fxa.authenticator;
 
 import android.accounts.Account;
 import android.accounts.AccountManager;
+import android.annotation.SuppressLint;
 import android.app.Activity;
 import android.content.ContentResolver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.ResultReceiver;
@@ -767,16 +768,17 @@ public class AndroidFxAccount {
         intent.putExtra(FxAccountProfileService.KEY_AUTH_TOKEN, authToken);
         intent.putExtra(FxAccountProfileService.KEY_PROFILE_SERVER_URI, getProfileServerURI());
         intent.putExtra(FxAccountProfileService.KEY_RESULT_RECEIVER, new ProfileResultReceiver(new Handler()));
         context.startService(intent);
       }
     });
   }
 
+  @SuppressLint("ParcelCreator") // The CREATOR field is defined in the super class.
   private class ProfileResultReceiver extends ResultReceiver {
     public ProfileResultReceiver(Handler handler) {
       super(handler);
     }
 
     @Override
     protected void onReceiveResult(int resultCode, Bundle bundle) {
       super.onReceiveResult(resultCode, bundle);