From 63047e0ac6ba3e67df4c611c15d67113052741bf Mon Sep 17 00:00:00 2001 From: Marine Date: Mon, 16 Feb 2015 15:03:11 +0100 Subject: [PATCH] remove redundant cast (Button) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit findViewById(R.id.pop) , findViewById(R.id.imap) and findViewById(R.id.webdav) are Button so it’s redundant to cast it to Button --- .../fsck/k9/activity/setup/AccountSetupAccountType.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupAccountType.java b/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupAccountType.java index 1e07fc6c0..5bc9f4130 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupAccountType.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/setup/AccountSetupAccountType.java @@ -7,7 +7,6 @@ import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; -import android.widget.Button; import android.widget.Toast; import com.fsck.k9.Account; import com.fsck.k9.K9; @@ -41,9 +40,9 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.account_setup_account_type); - ((Button)findViewById(R.id.pop)).setOnClickListener(this); - ((Button)findViewById(R.id.imap)).setOnClickListener(this); - ((Button)findViewById(R.id.webdav)).setOnClickListener(this); + findViewById(R.id.pop).setOnClickListener(this); + findViewById(R.id.imap).setOnClickListener(this); + findViewById(R.id.webdav).setOnClickListener(this); String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT); mAccount = Preferences.getPreferences(this).getAccount(accountUuid);