use Objects.equals

This commit is contained in:
Unpublished
2019-02-26 11:05:21 +01:00
parent 1804e75911
commit 67751bfff5
18 changed files with 120 additions and 96 deletions

View File

@@ -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;
}