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
8 changes: 4 additions & 4 deletions src/main/java/com/treasuredata/client/model/TDColumn.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.RuntimeJsonMappingException;
import com.google.common.base.Objects;
import org.json.simple.JSONArray;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
Expand All @@ -33,6 +32,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.Objects.requireNonNull;
Expand Down Expand Up @@ -169,15 +169,15 @@ public boolean equals(Object obj)
return false;
}
TDColumn other = (TDColumn) obj;
return Objects.equal(this.name, other.name) &&
Objects.equal(type, other.type) &&
return Objects.equals(this.name, other.name) &&
Objects.equals(type, other.type) &&
Arrays.equals(key, other.key);
}

@Override
public int hashCode()
{
return Objects.hashCode(name, type, Arrays.hashCode(key));
return Objects.hash(name, type, Arrays.hashCode(key));
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/treasuredata/client/model/TDDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

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

@JsonCollectionRootName(value = "databases")
Expand Down Expand Up @@ -112,12 +112,12 @@ public boolean equals(Object obj)
return false;
}
TDDatabase other = (TDDatabase) obj;
return Objects.equal(this.name, other.name);
return Objects.equals(this.name, other.name);
}

@Override
public int hashCode()
{
return Objects.hashCode(name);
return Objects.hash(name);
}
}
10 changes: 5 additions & 5 deletions src/main/java/com/treasuredata/client/model/TDTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

public class TDTable
Expand Down Expand Up @@ -136,15 +136,15 @@ public boolean equals(Object obj)
return false;
}
TDTable other = (TDTable) obj;
return Objects.equal(this.name, other.name) &&
Objects.equal(this.type, other.type) &&
Objects.equal(this.columns, other.columns);
return Objects.equals(this.name, other.name) &&
Objects.equals(this.type, other.type) &&
Objects.equals(this.columns, other.columns);
}

@Override
public int hashCode()
{
return Objects.hashCode(name, type, columns);
return Objects.hash(name, type, columns);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

import java.util.List;
import java.util.Objects;

/**
* TDTableDistribution provides the information about custom partitioning of the table.
Expand Down Expand Up @@ -72,16 +72,16 @@ public boolean equals(Object obj)
return false;
}
TDTableDistribution other = (TDTableDistribution) obj;
return Objects.equal(this.userTableId, other.userTableId) &&
Objects.equal(this.bucketCount, other.bucketCount) &&
Objects.equal(this.partitionFunction, other.partitionFunction) &&
Objects.equal(this.columns, other.columns);
return Objects.equals(this.userTableId, other.userTableId) &&
Objects.equals(this.bucketCount, other.bucketCount) &&
Objects.equals(this.partitionFunction, other.partitionFunction) &&
Objects.equals(this.columns, other.columns);
}

@Override
public int hashCode()
{
return Objects.hashCode(userTableId, bucketCount, partitionFunction);
return Objects.hash(userTableId, bucketCount, partitionFunction);
}

@Override
Expand Down