From 42b1c49188b410ea3b81ae54a6de086b27f8144e Mon Sep 17 00:00:00 2001 From: Scott Mitchell Date: Mon, 18 Apr 2022 12:23:06 -0700 Subject: [PATCH] Resolve javadocAll errors (#2195) Motivation: The release.sh script runs `javadocAll` task on JDK17 which found a few errors. Motivation: - JDK8 javadoc generation has an JDK8 erroneous javadoc `warning - Tag @link: can't find` from generated code. Workaround the issue by using canonical type name in the link. - Remove `h3` usage in Test sources - Remove exclude of generated code that is linked in javadocs from non-generated code. --- .../concurrent/api/TestCompletable.java | 4 +- .../concurrent/api/TestPublisher.java | 3 +- .../concurrent/api/TestSingle.java | 4 +- servicetalk-grpc-health/build.gradle | 4 -- .../grpc/protoc/FileDescriptor.java | 14 +++-- .../grpc/protoc/GenerationContext.java | 32 ++++++++--- .../io/servicetalk/grpc/protoc/Generator.java | 57 ++++++++++--------- .../grpc/protoc/ServiceClassBuilder.java | 28 +++++++++ .../io/servicetalk/grpc/protoc/Words.java | 1 + 9 files changed, 99 insertions(+), 48 deletions(-) create mode 100644 servicetalk-grpc-protoc/src/main/java/io/servicetalk/grpc/protoc/ServiceClassBuilder.java diff --git a/servicetalk-concurrent-api/src/testFixtures/java/io/servicetalk/concurrent/api/TestCompletable.java b/servicetalk-concurrent-api/src/testFixtures/java/io/servicetalk/concurrent/api/TestCompletable.java index 996b6b753f..badce3f177 100644 --- a/servicetalk-concurrent-api/src/testFixtures/java/io/servicetalk/concurrent/api/TestCompletable.java +++ b/servicetalk-concurrent-api/src/testFixtures/java/io/servicetalk/concurrent/api/TestCompletable.java @@ -42,8 +42,8 @@ * invoked for every {@link #subscribe(Subscriber)} invocation, and the result is used as the delegate for subsequent * {@link #onSubscribe(Cancellable)}, {@link #onComplete()}, and * {@link #onError(Throwable)} calls. See {@link Builder} for more information. - * - *

Defaults

+ *

+ * Defaults: *