Skip to content

Commit 84ffb6d

Browse files
committed
chore: add generics to remove warnings about raw usage
1 parent b95e51d commit 84ffb6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/ObjectReadSessionStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public void onResponse(BidiReadObjectResponse response) {
281281
ObjectRangeData d = rangeData.get(i);
282282
ReadRange readRange = d.getReadRange();
283283
long id = readRange.getReadId();
284-
ObjectReadSessionStreamRead read = state.getOutstandingRead(id);
284+
ObjectReadSessionStreamRead<?> read = state.getOutstandingRead(id);
285285
if (read == null || !read.acceptingBytes()) {
286286
continue;
287287
}
@@ -391,7 +391,7 @@ public void onError(Throwable t) {
391391
for (ReadRangeError rangeError : rangeErrors) {
392392
Status status = rangeError.getStatus();
393393
long id = rangeError.getReadId();
394-
ObjectReadSessionStreamRead read = state.getOutstandingRead(id);
394+
ObjectReadSessionStreamRead<?> read = state.getOutstandingRead(id);
395395
if (read == null) {
396396
continue;
397397
}
@@ -414,7 +414,7 @@ public void onError(Throwable t) {
414414
private OnSuccess restartReadFromCurrentOffset(long id) {
415415
return () -> {
416416
//noinspection resource
417-
ObjectReadSessionStreamRead readWithNewId = state.assignNewReadId(id);
417+
ObjectReadSessionStreamRead<?> readWithNewId = state.assignNewReadId(id);
418418
BidiReadObjectRequest requestWithNewReadId =
419419
BidiReadObjectRequest.newBuilder().addReadRanges(readWithNewId.makeReadRange()).build();
420420
ObjectReadSessionStream.this.send(requestWithNewReadId);

0 commit comments

Comments
 (0)