From e837d5a296c725d141802777808aaff944e7b427 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 4 Nov 2019 17:23:01 -0800 Subject: [PATCH] Fixed deprecated method in GRPC Java test. Change-Id: Iccae8fe9409adbf3cd3013a5cf3368e068175ad3 --- grpc/tests/JavaGrpcTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grpc/tests/JavaGrpcTest.java b/grpc/tests/JavaGrpcTest.java index 98a67b518..273291161 100644 --- a/grpc/tests/JavaGrpcTest.java +++ b/grpc/tests/JavaGrpcTest.java @@ -96,7 +96,7 @@ public class JavaGrpcTest { if (monster.hp() > maxHp.get()) { // Found a monster of higher hit points. maxHp.set(monster.hp()); - maxHpMonsterName.set(monster.name()); + maxHpMonsterName.set(monster.name()); maxHpCount.set(1); } else if (monster.hp() == maxHp.get()) { @@ -141,7 +141,7 @@ public class JavaGrpcTest { channel = ManagedChannelBuilder.forAddress("localhost", port) // Channels are secure by default (via SSL/TLS). For the example we disable TLS to avoid // needing certificates. - .usePlaintext(true) + .usePlaintext() .directExecutor() .build(); blockingStub = MonsterStorageGrpc.newBlockingStub(channel); @@ -177,7 +177,7 @@ public class JavaGrpcTest { final CountDownLatch streamAlive = new CountDownLatch(1); StreamObserver statObserver = new StreamObserver() { - public void onCompleted() { + public void onCompleted() { streamAlive.countDown(); } public void onError(Throwable ex) { }