Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;
import java.util.Optional;

public class TDBulkLoadSessionStartRequest
Expand Down Expand Up @@ -49,8 +50,7 @@ public boolean equals(Object o)
}

TDBulkLoadSessionStartRequest that = (TDBulkLoadSessionStartRequest) o;

return scheduledTime != null ? scheduledTime.equals(that.scheduledTime) : that.scheduledTime == null;
return Objects.equals(scheduledTime, that.scheduledTime);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

public class TDBulkLoadSessionStartResult
{
private final String jobId;
Expand Down Expand Up @@ -32,7 +34,7 @@ public boolean equals(Object o)

TDBulkLoadSessionStartResult that = (TDBulkLoadSessionStartResult) o;

return jobId != null ? jobId.equals(that.jobId) : that.jobId == null;
return Objects.equals(jobId, that.jobId);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;

import java.util.Objects;
import java.util.Optional;

/**
Expand Down Expand Up @@ -211,38 +212,37 @@ public boolean equals(Object o)
}

TDSavedQueryUpdateRequest that = (TDSavedQueryUpdateRequest) o;

if (name != null ? !name.equals(that.name) : that.name != null) {
if (!Objects.equals(name, that.name)) {
return false;
}
if (cron != null ? !cron.equals(that.cron) : that.cron != null) {
if (!Objects.equals(cron, that.cron)) {
return false;
}
if (type != null ? !type.equals(that.type) : that.type != null) {
if (!Objects.equals(type, that.type)) {
return false;
}
if (query != null ? !query.equals(that.query) : that.query != null) {
if (!Objects.equals(query, that.query)) {
return false;
}
if (timezone != null ? !timezone.equals(that.timezone) : that.timezone != null) {
if (!Objects.equals(timezone, that.timezone)) {
return false;
}
if (delay != null ? !delay.equals(that.delay) : that.delay != null) {
if (!Objects.equals(delay, that.delay)) {
return false;
}
if (database != null ? !database.equals(that.database) : that.database != null) {
if (!Objects.equals(database, that.database)) {
return false;
}
if (priority != null ? !priority.equals(that.priority) : that.priority != null) {
if (!Objects.equals(priority, that.priority)) {
return false;
}
if (retryLimit != null ? !retryLimit.equals(that.retryLimit) : that.retryLimit != null) {
if (!Objects.equals(retryLimit, that.retryLimit)) {
return false;
}
if (engineVersion != null ? !engineVersion.equals(that.engineVersion) : that.engineVersion != null) {
if (!Objects.equals(engineVersion, that.engineVersion)) {
return false;
}
return result != null ? result.equals(that.result) : that.result == null;
return Objects.equals(result, that.result);
}

@Override
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/treasuredata/client/model/TDUserList.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public boolean equals(Object o)
}

TDUserList that = (TDUserList) o;

return users != null ? users.equals(that.users) : that.users == null;
return Objects.equals(users, that.users);
}

@Override
Expand Down