Skip to content

Commit

Permalink
Replace Objects.equals
Browse files Browse the repository at this point in the history
replace Objects.equals(A a, A b) with a.equals(b)
  • Loading branch information
messiasv committed Feb 17, 2017
1 parent 95fd224 commit 1df8708
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.Objects;

public class MainActivity extends AppCompatActivity {

private static final String TAG = "MainActivity";
Expand All @@ -16,7 +14,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
String username = Tools.readFile(getApplicationContext(), "username");
String credentials = Tools.readFile(getApplicationContext() ,"creds");
if (Objects.equals(username, "") || Objects.equals(credentials, "")) {
if (username.equals("") || credentials.equals("")) {
Intent intent = new Intent(getApplicationContext(), UserLoginActivity.class);
startActivity(intent);
finish();
Expand Down

0 comments on commit 1df8708

Please sign in to comment.