all: stabilize ManagedChannelBuilder.usePlaintext()

This commit is contained in:
ZHANG Dapeng 2019-09-18 15:16:31 -07:00 committed by GitHub
parent a04ad90888
commit 19b09160c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -181,15 +181,12 @@ public abstract class ManagedChannelBuilder<T extends ManagedChannelBuilder<T>>
* <p>This assumes prior knowledge that the target of this channel is using plaintext. It will
* not perform HTTP/1.1 upgrades.
*
*
* @throws UnsupportedOperationException if plaintext mode is not supported.
* @return this
* @throws UnsupportedOperationException if plaintext mode is not supported.
* @since 1.11.0
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1772")
@SuppressWarnings("deprecation")
public T usePlaintext() {
return usePlaintext(true);
throw new UnsupportedOperationException();
}
/**