mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
use Objects.equals
This commit is contained in:
@@ -70,6 +70,7 @@ import java.net.UnknownHostException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.mail.AuthenticationFailedException;
|
||||
@@ -857,9 +858,9 @@ public class FragmentAccount extends FragmentBase {
|
||||
auth_type != account.auth_type ||
|
||||
!host.equals(account.host) || Integer.parseInt(port) != account.port ||
|
||||
!user.equals(account.user) || !password.equals(account.password) ||
|
||||
(realm == null ? accountRealm != null : !realm.equals(accountRealm))));
|
||||
!Objects.equals(realm, accountRealm)));
|
||||
boolean reload = (check || account == null ||
|
||||
(account.prefix == null ? prefix != null : !account.prefix.equals(prefix)) ||
|
||||
!Objects.equals(account.prefix, prefix) ||
|
||||
account.synchronize != synchronize ||
|
||||
account.ondemand != ondemand ||
|
||||
!account.poll_interval.equals(Integer.parseInt(interval)));
|
||||
|
||||
Reference in New Issue
Block a user