diff --git a/core/src/main/java/io/grpc/ManagedChannelBuilder.java b/core/src/main/java/io/grpc/ManagedChannelBuilder.java index 0745cddd8f..c0df373700 100644 --- a/core/src/main/java/io/grpc/ManagedChannelBuilder.java +++ b/core/src/main/java/io/grpc/ManagedChannelBuilder.java @@ -152,6 +152,8 @@ public abstract class ManagedChannelBuilder> * * @param skipNegotiation @{code true} if there is a priori knowledge that the endpoint supports * plaintext, {@code false} if plaintext use must be negotiated. + * + * @throws UnsupportedOperationException if plaintext mode is not supported. * @return this * @since 1.0.0 */ diff --git a/core/src/main/java/io/grpc/ServerBuilder.java b/core/src/main/java/io/grpc/ServerBuilder.java index 87008ac2b1..e646d69cfb 100644 --- a/core/src/main/java/io/grpc/ServerBuilder.java +++ b/core/src/main/java/io/grpc/ServerBuilder.java @@ -145,6 +145,7 @@ public abstract class ServerBuilder> { * @param privateKey file containing the private key * * @return this + * @throws UnsupportedOperationException if the server does not support TLS. * @since 1.0.0 */ public abstract T useTransportSecurity(File certChain, File privateKey);