mirror of https://github.com/grpc/grpc-java.git
all: stabilize ManagedChannelBuilder.usePlaintext()
This commit is contained in:
parent
a04ad90888
commit
19b09160c9
|
@ -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
|
* <p>This assumes prior knowledge that the target of this channel is using plaintext. It will
|
||||||
* not perform HTTP/1.1 upgrades.
|
* not perform HTTP/1.1 upgrades.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @throws UnsupportedOperationException if plaintext mode is not supported.
|
|
||||||
* @return this
|
* @return this
|
||||||
|
* @throws UnsupportedOperationException if plaintext mode is not supported.
|
||||||
* @since 1.11.0
|
* @since 1.11.0
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1772")
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public T usePlaintext() {
|
public T usePlaintext() {
|
||||||
return usePlaintext(true);
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue