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:
@@ -29,6 +29,7 @@ import org.json.JSONException;
|
||||
import java.io.IOException;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.Entity;
|
||||
@@ -242,11 +243,11 @@ public class EntityOperation {
|
||||
if (obj instanceof EntityOperation) {
|
||||
EntityOperation other = (EntityOperation) obj;
|
||||
return (this.folder.equals(other.folder) &&
|
||||
(this.message == null ? other.message == null : this.message.equals(other.message)) &&
|
||||
Objects.equals(this.message, other.message) &&
|
||||
this.name.equals(other.name) &&
|
||||
this.args.equals(other.args) &&
|
||||
this.created.equals(other.created) &&
|
||||
(this.error == null ? other.error == null : this.error.equals(other.error)));
|
||||
Objects.equals(this.error, other.error));
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user