Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit cea4282

Browse files
authored
chore: remove warnings and clean up codebase (#1554)
* chore: remove warnings * Clean up * No more Java 7 * Remove unnecessary code
1 parent 6a96770 commit cea4282

29 files changed

+331
-460
lines changed

benchmark/src/jmh/java/com/google/api/gax/grpc/ServerStreamingCallableBenchmark.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static class GrpcStreamingObserver
338338
private final SettableFuture<Void> future = SettableFuture.create();
339339
private final boolean autoFlowControl;
340340
private final Blackhole blackhole;
341-
private ClientCallStreamObserver inner;
341+
private ClientCallStreamObserver<?> inner;
342342

343343
public GrpcStreamingObserver(boolean autoFlowControl, Blackhole blackhole) {
344344
this.autoFlowControl = autoFlowControl;
@@ -350,11 +350,11 @@ void awaitCompletion() throws InterruptedException, ExecutionException, TimeoutE
350350
}
351351

352352
@Override
353-
public void beforeStart(ClientCallStreamObserver observer) {
353+
public void beforeStart(ClientCallStreamObserver<ReadRowsRequest> observer) {
354354
if (!autoFlowControl) {
355355
observer.disableAutoInboundFlowControl();
356356
}
357-
this.inner = observer;
357+
inner = observer;
358358
}
359359

360360
@Override

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ configure(javaProjects) {
153153

154154
javadoc.options {
155155
encoding = 'UTF-8'
156-
links 'https://docs.oracle.com/javase/7/docs/api/'
156+
links 'https://docs.oracle.com/javase/8/docs/api/'
157157

158158
if (JavaVersion.current().isJava8Compatible()) {
159159
addStringOption('Xdoclint:all,-missing', '-quiet')
160160
}
161161
if (JavaVersion.current().isJava11Compatible()) {
162-
addStringOption('-release', '7')
162+
addStringOption('-release', '8')
163163
}
164164
}
165165

0 commit comments

Comments
 (0)