Skip to content

Commit 674e429

Browse files
author
Dhriti Chopra
committed
fix lint
1 parent 9112c94 commit 674e429

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

google-cloud-storage/src/main/java/com/google/cloud/storage/multipartupload/model/AbortMultipartUploadRequest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public String userProject() {
8383
return userProject;
8484
}
8585

86-
8786
/**
8887
* Returns a new builder for creating {@link AbortMultipartUploadRequest} instances.
8988
*

google-cloud-storage/src/main/java/com/google/cloud/storage/multipartupload/model/ListMultipartUploadsRequest.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,14 @@ public boolean equals(Object o) {
172172
@Override
173173
public int hashCode() {
174174
return Objects.hash(
175-
bucket, delimiter, encodingType, keyMarker, maxUploads, prefix, uploadIdMarker, userProject);
175+
bucket,
176+
delimiter,
177+
encodingType,
178+
keyMarker,
179+
maxUploads,
180+
prefix,
181+
uploadIdMarker,
182+
userProject);
176183
}
177184

178185
@Override
@@ -333,7 +340,14 @@ public Builder userProject(String userProject) {
333340
@BetaApi
334341
public ListMultipartUploadsRequest build() {
335342
return new ListMultipartUploadsRequest(
336-
bucket, delimiter, encodingType, keyMarker, maxUploads, prefix, uploadIdMarker, userProject);
343+
bucket,
344+
delimiter,
345+
encodingType,
346+
keyMarker,
347+
maxUploads,
348+
prefix,
349+
uploadIdMarker,
350+
userProject);
337351
}
338352
}
339353
}

google-cloud-storage/src/test/java/com/google/cloud/storage/ITMultipartUploadHttpRequestManagerTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import static com.google.common.truth.Truth.assertThat;
2020
import static io.grpc.netty.shaded.io.netty.handler.codec.http.HttpHeaderNames.CONTENT_TYPE;
21-
import static io.grpc.netty.shaded.io.netty.handler.codec.http.HttpResponseStatus.NO_CONTENT;
2221
import static io.grpc.netty.shaded.io.netty.handler.codec.http.HttpResponseStatus.OK;
2322
import static org.junit.Assert.assertThrows;
2423

@@ -761,7 +760,8 @@ public void sendListPartsRequest_withUserProject() throws Exception {
761760
.parts(ImmutableList.of())
762761
.build();
763762
ByteBuf buf = Unpooled.wrappedBuffer(xmlMapper.writeValueAsBytes(listPartsResponse));
764-
DefaultFullHttpResponse resp = new DefaultFullHttpResponse(req.protocolVersion(), OK, buf);
763+
DefaultFullHttpResponse resp =
764+
new DefaultFullHttpResponse(req.protocolVersion(), OK, buf);
765765
resp.headers().set(CONTENT_TYPE, "application/xml; charset=utf-8");
766766
return resp;
767767
};
@@ -848,7 +848,8 @@ public void sendAbortMultipartUploadRequest_withUserProject() throws Exception {
848848
assertThat(req.headers().get("x-goog-user-project")).isEqualTo("test-project");
849849
AbortMultipartUploadResponse response = new AbortMultipartUploadResponse();
850850
ByteBuf buf = Unpooled.wrappedBuffer(xmlMapper.writeValueAsBytes(response));
851-
DefaultFullHttpResponse resp = new DefaultFullHttpResponse(req.protocolVersion(), OK, buf);
851+
DefaultFullHttpResponse resp =
852+
new DefaultFullHttpResponse(req.protocolVersion(), OK, buf);
852853
resp.headers().set(CONTENT_TYPE, "application/xml; charset=utf-8");
853854
return resp;
854855
};

0 commit comments

Comments
 (0)