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

Commit

Permalink
chore: remove warnings and clean up codebase (#1554)
Browse files Browse the repository at this point in the history
* chore: remove warnings
* Clean up
* No more Java 7
* Remove unnecessary code
  • Loading branch information
chanseokoh committed Nov 11, 2021
1 parent 6a96770 commit cea4282
Show file tree
Hide file tree
Showing 29 changed files with 331 additions and 460 deletions.
Expand Up @@ -338,7 +338,7 @@ static class GrpcStreamingObserver
private final SettableFuture<Void> future = SettableFuture.create();
private final boolean autoFlowControl;
private final Blackhole blackhole;
private ClientCallStreamObserver inner;
private ClientCallStreamObserver<?> inner;

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

@Override
public void beforeStart(ClientCallStreamObserver observer) {
public void beforeStart(ClientCallStreamObserver<ReadRowsRequest> observer) {
if (!autoFlowControl) {
observer.disableAutoInboundFlowControl();
}
this.inner = observer;
inner = observer;
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -153,13 +153,13 @@ configure(javaProjects) {

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

if (JavaVersion.current().isJava8Compatible()) {
addStringOption('Xdoclint:all,-missing', '-quiet')
}
if (JavaVersion.current().isJava11Compatible()) {
addStringOption('-release', '7')
addStringOption('-release', '8')
}
}

Expand Down

0 comments on commit cea4282

Please sign in to comment.