use final on variables, remove c-style array definition

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-11-30 22:16:56 +01:00
parent a2ac0d427a
commit dadbf70fd6
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -73,7 +73,7 @@ public class PassCodeActivity extends AppCompatActivity implements Injectable {
private MaterialButton mBCancel;
private TextView mPassCodeHdr;
private TextView mPassCodeHdrExplanation;
private EditText[] mPassCodeEditTexts = new EditText[4];
private final EditText[] mPassCodeEditTexts = new EditText[4];
private String [] mPassCodeDigits = {"","","",""};
private static final String KEY_PASSCODE_DIGITS = "PASSCODE_DIGITS";
@ -318,7 +318,7 @@ public class PassCodeActivity extends AppCompatActivity implements Injectable {
protected boolean checkPassCode() {
String savedPassCodeDigits[] = preferences.getPassCode();
String[] savedPassCodeDigits = preferences.getPassCode();
boolean result = true;
for (int i = 0; i < mPassCodeDigits.length && result; i++) {
@ -460,7 +460,5 @@ public class PassCodeActivity extends AppCompatActivity implements Injectable {
public void onTextChanged(CharSequence s, int start, int before, int count) {
// nothing to do
}
}
}