You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2016/01/29 17:39:10 UTC

jclouds git commit: Add missing hashCode methods

Repository: jclouds
Updated Branches:
  refs/heads/master 86e947dde -> 4be8a2eb7


Add missing hashCode methods

Found via error-prone.


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/4be8a2eb
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/4be8a2eb
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/4be8a2eb

Branch: refs/heads/master
Commit: 4be8a2eb721e6d94ffee67e13491cfbd47692f00
Parents: 86e947d
Author: Andrew Gaul <ga...@apache.org>
Authored: Fri Jan 29 08:37:46 2016 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Fri Jan 29 08:37:46 2016 -0800

----------------------------------------------------------------------
 project/pom.xml                                                 | 1 +
 .../main/java/org/jclouds/gogrid/options/GetJobListOptions.java | 5 +++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/4be8a2eb/project/pom.xml
----------------------------------------------------------------------
diff --git a/project/pom.xml b/project/pom.xml
index 9250c44..ddfbf55 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -748,6 +748,7 @@
               <compilerArg>-Xlint:-serial</compilerArg>
               <compilerArg>-Xlint:-unchecked</compilerArg>
               <compilerArg>-Xep:ClassCanBeStatic:ERROR</compilerArg>
+              <compilerArg>-Xep:EqualsHashCode:ERROR</compilerArg>
               <compilerArg>-Xep:GuiceAssistedInjectScoping:OFF</compilerArg>
               <compilerArg>-Xep:LongLiteralLowerCaseSuffix:OFF</compilerArg>
               <compilerArg>-Xep:MalformedFormatString:ERROR</compilerArg>

http://git-wip-us.apache.org/repos/asf/jclouds/blob/4be8a2eb/providers/gogrid/src/main/java/org/jclouds/gogrid/options/GetJobListOptions.java
----------------------------------------------------------------------
diff --git a/providers/gogrid/src/main/java/org/jclouds/gogrid/options/GetJobListOptions.java b/providers/gogrid/src/main/java/org/jclouds/gogrid/options/GetJobListOptions.java
index a83e1ef..9c18153 100644
--- a/providers/gogrid/src/main/java/org/jclouds/gogrid/options/GetJobListOptions.java
+++ b/providers/gogrid/src/main/java/org/jclouds/gogrid/options/GetJobListOptions.java
@@ -96,6 +96,11 @@ public class GetJobListOptions extends BaseHttpRequestOptions {
       return buildQueryParameters().equals(options.buildQueryParameters());
    }
 
+   @Override
+   public int hashCode() {
+      return buildQueryParameters().hashCode();
+   }
+
    public static class Builder {
 
       public static GetJobListOptions maxItems(int maxNumber) {