Add missing hashCode methods

Found via error-prone.
This commit is contained in:
Andrew Gaul 2016-01-29 08:37:46 -08:00
parent 86e947dded
commit 4be8a2eb72
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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) {