Skip to content

Commit

Permalink
Convert TestingColumnHandle to java.util.Objects
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Dec 9, 2014
1 parent 1cbcb7c commit 964f89e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@

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

import java.util.Objects;

import static com.google.common.base.MoreObjects.toStringHelper;

public class TestingColumnHandle
implements ConnectorColumnHandle
implements ConnectorColumnHandle
{
private final String name;

Expand All @@ -40,7 +41,7 @@ public String getName()
@Override
public int hashCode()
{
return Objects.hashCode(name);
return Objects.hash(name);
}

@Override
Expand All @@ -52,8 +53,8 @@ public boolean equals(Object obj)
if (obj == null || getClass() != obj.getClass()) {
return false;
}
final TestingColumnHandle other = (TestingColumnHandle) obj;
return Objects.equal(this.name, other.name);
TestingColumnHandle other = (TestingColumnHandle) obj;
return Objects.equals(this.name, other.name);
}

@Override
Expand Down

0 comments on commit 964f89e

Please sign in to comment.