Correct misplaced AutoValue parameters

Found via error-prone 2.0.21.
This commit is contained in:
Andrew Gaul 2017-07-04 11:15:21 -07:00
parent d6ca5cb429
commit d36812e5a6
2 changed files with 4 additions and 4 deletions

View File

@ -58,8 +58,8 @@ public abstract class PaginatedCollection<T> extends IterableWithMarker<T> {
@Nullable public abstract URI last();
@SerializedNames({ "first", "prev", "next", "last" })
public static Pages create(URI first, URI next, URI prev, URI last) {
return new AutoValue_PaginatedCollection_Links_Pages(first, next, prev, last);
public static Pages create(URI first, URI prev, URI next, URI last) {
return new AutoValue_PaginatedCollection_Links_Pages(first, prev, next, last);
}
Pages() { }

View File

@ -32,10 +32,10 @@ public abstract class ResumableUpload {
@Nullable public abstract String contentLength();
@Nullable public abstract Long rangeUpperValue();
@Nullable public abstract Long rangeLowerValue();
@Nullable public abstract Long rangeUpperValue();
public static ResumableUpload create(int statusCode, String uploadId, String contentLength, Long rangeLowerValue,
Long rangeUpperValue) {
return new AutoValue_ResumableUpload(statusCode, uploadId, contentLength, rangeLowerValue, rangeUpperValue);