Skip to content

Commit 6949b87

Browse files
authored
api: stabilize ManagedChannelBuilder.useTransportSecurity (#10244)
* api: stabilize ManagedChannelBuilder.useTransportSecurity and add a note in Java doc
1 parent 639fd8e commit 6949b87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/src/main/java/io/grpc/ManagedChannelBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,16 @@ public T usePlaintext() {
193193
}
194194

195195
/**
196-
* Makes the client use TLS.
196+
* Makes the client use TLS. Note: this is enabled by default.
197+
*
198+
* <p>It is recommended to use the {@link ChannelCredentials} API
199+
* instead of this method.
197200
*
198201
* @return this
199202
* @throws IllegalStateException if ChannelCredentials were provided when constructing the builder
200203
* @throws UnsupportedOperationException if transport security is not supported.
201204
* @since 1.9.0
202205
*/
203-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/3713")
204206
public T useTransportSecurity() {
205207
throw new UnsupportedOperationException();
206208
}

0 commit comments

Comments
 (0)