Skip to content

Commit

Permalink
core: delete deprecated ClientStreamTracer.Factory#newClientStreamTra…
Browse files Browse the repository at this point in the history
…cer (#5377)
  • Loading branch information
zhangkun83 committed Feb 20, 2019
1 parent b867f8e commit 86f9743
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions core/src/main/java/io/grpc/ClientStreamTracer.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ public void inboundTrailers(Metadata trailers) {
* Factory class for {@link ClientStreamTracer}.
*/
public abstract static class Factory {
/**
* Creates a {@link ClientStreamTracer} for a new client stream.
*
* @deprecated Override/call {@link #newClientStreamTracer(CallOptions, Metadata)} instead.
*/
@Deprecated
public ClientStreamTracer newClientStreamTracer(Metadata headers) {
throw new UnsupportedOperationException("This method will be deleted. Do not call.");
}

/**
* Creates a {@link ClientStreamTracer} for a new client stream.
*
Expand All @@ -68,9 +58,8 @@ public ClientStreamTracer newClientStreamTracer(Metadata headers) {
* method. It should not be saved because it is not safe for read or write after the
* method returns.
*/
@SuppressWarnings("deprecation")
public ClientStreamTracer newClientStreamTracer(CallOptions callOptions, Metadata headers) {
return newClientStreamTracer(headers);
throw new UnsupportedOperationException("Not implemented");
}
}
}

0 comments on commit 86f9743

Please sign in to comment.