Skip to content

Commit 19b0916

Browse files
authored
all: stabilize ManagedChannelBuilder.usePlaintext()
1 parent a04ad90 commit 19b0916

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,12 @@ public T usePlaintext(boolean skipNegotiation) {
181181
* <p>This assumes prior knowledge that the target of this channel is using plaintext. It will
182182
* not perform HTTP/1.1 upgrades.
183183
*
184-
*
185-
* @throws UnsupportedOperationException if plaintext mode is not supported.
186184
* @return this
185+
* @throws UnsupportedOperationException if plaintext mode is not supported.
187186
* @since 1.11.0
188187
*/
189-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1772")
190-
@SuppressWarnings("deprecation")
191188
public T usePlaintext() {
192-
return usePlaintext(true);
189+
throw new UnsupportedOperationException();
193190
}
194191

195192
/**

0 commit comments

Comments
 (0)