From 7c521d5840f547b0dbb95f8d51666df46bff343e Mon Sep 17 00:00:00 2001 From: Vaci Koblizek Date: Sun, 6 Mar 2022 16:47:37 +0000 Subject: [PATCH] avoid var in ClientHook --- runtime/src/main/java/org/capnproto/ClientHook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/main/java/org/capnproto/ClientHook.java b/runtime/src/main/java/org/capnproto/ClientHook.java index 5f4cdb4..ed4b320 100644 --- a/runtime/src/main/java/org/capnproto/ClientHook.java +++ b/runtime/src/main/java/org/capnproto/ClientHook.java @@ -61,7 +61,7 @@ public interface ClientHook { * Repeatedly calls whenMoreResolved() until it returns nullptr. */ default CompletableFuture whenResolved() { - var promise = whenMoreResolved(); + CompletableFuture promise = whenMoreResolved(); return promise != null ? promise.thenCompose(ClientHook::whenResolved) : CompletableFuture.completedFuture(null); @@ -83,7 +83,7 @@ public interface ClientHook { } /** - * Implements {@link Capability.Client.getFd}. If this returns null but whenMoreResolved() returns + * Implements Capability.Client.getFd. If this returns null but whenMoreResolved() returns * non-null, then Capability::Client::getFd() waits for resolution and tries again. */ default FileDescriptor getFd() {