浏览代码

Merge pull request #2541 from nextcloud/accountauthenticator-overrides

authentication: Added @Override annotations to applicable methods.
Andy Scherzinger 7 年之前
父节点
当前提交
cd6449888d
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/main/java/com/owncloud/android/authentication/AccountAuthenticatorActivity.java

+ 6 - 4
src/main/java/com/owncloud/android/authentication/AccountAuthenticatorActivity.java

@@ -49,12 +49,13 @@ public class AccountAuthenticatorActivity extends AppCompatActivity {
     }
 
     /**
-     * Retreives the AccountAuthenticatorResponse from either the intent of the icicle, if the
+     * Retrieves the AccountAuthenticatorResponse from either the intent of the icicle, if the
      * icicle is non-zero.
-     * @param icicle the save instance data of this Activity, may be null
+     * @param savedInstanceState the save instance data of this Activity, may be null
      */
-    protected void onCreate(Bundle icicle) {
-        super.onCreate(icicle);
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
 
         mAccountAuthenticatorResponse =
                 getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE);
@@ -67,6 +68,7 @@ public class AccountAuthenticatorActivity extends AppCompatActivity {
     /**
      * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present.
      */
+    @Override
     public void finish() {
         if (mAccountAuthenticatorResponse != null) {
             // send the result bundle back if set, otherwise send an error.