Skip to content

Commit

Permalink
android-interop: Remove usage of deprecated generated interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ejona86 committed Jul 18, 2016
1 parent 0ad5948 commit 0099657
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions android-interop-testing/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ dependencies {
compile 'io.grpc:grpc-testing:1.1.0-SNAPSHOT' // CURRENT_GRPC_VERSION
compile 'javax.annotation:javax.annotation-api:1.2'
}

gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ final class InteropTester extends AsyncTask<Void, Void, String> {

private ManagedChannel channel;
private TestServiceGrpc.TestServiceBlockingStub blockingStub;
private TestServiceGrpc.TestService asyncStub;
private TestServiceGrpc.TestServiceStub asyncStub;
private String testCase;
private TestListener listener;
private static int TIMEOUT_MILLIS = 5000;
Expand Down Expand Up @@ -673,7 +673,7 @@ public void unimplementedMethod() {

/** Start a fullDuplexCall which the server will not respond, and verify the deadline expires. */
public void timeoutOnSleepingServer() throws Exception {
TestServiceGrpc.TestService stub = TestServiceGrpc.newStub(channel)
TestServiceGrpc.TestServiceStub stub = TestServiceGrpc.newStub(channel)
.withDeadlineAfter(1, TimeUnit.MILLISECONDS);
StreamRecorder<StreamingOutputCallResponse> recorder = StreamRecorder.create();
StreamObserver<StreamingOutputCallRequest> requestObserver
Expand Down

0 comments on commit 0099657

Please sign in to comment.