Skip to content

Commit

Permalink
don't use guava Object class
Browse files Browse the repository at this point in the history
  • Loading branch information
leshi committed Feb 4, 2016
1 parent 7fe9ce4 commit 628c25c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.google.u2f.server.impl.attestation.android;

import com.google.common.base.Objects;

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

/**
* Authorization List that describes a Keymaster key
Expand All @@ -26,7 +25,7 @@ public Algorithm getAlgorithm() {

@Override
public int hashCode() {
return Objects.hashCode(purpose, algorithm);
return Objects.hash(purpose, algorithm);
}

@Override
Expand All @@ -39,7 +38,7 @@ public boolean equals(Object obj) {
return false;

AuthorizationList other = (AuthorizationList) obj;
return Objects.equal(algorithm, other.algorithm) && Objects.equal(purpose, other.purpose);
return Objects.equals(algorithm, other.algorithm) && Objects.equals(purpose, other.purpose);
}

public static class Builder {
Expand Down

0 comments on commit 628c25c

Please sign in to comment.