mirror of https://github.com/grpc/grpc-java.git
core: remove unnecessary type params in ServerStreamTracer
This commit is contained in:
parent
071942dc3b
commit
7a4aa47070
|
|
@ -28,7 +28,7 @@ public abstract class ServerStreamTracer extends StreamTracer {
|
||||||
* Called before the interceptors and the call handlers and make changes to the Context object
|
* Called before the interceptors and the call handlers and make changes to the Context object
|
||||||
* if needed.
|
* if needed.
|
||||||
*/
|
*/
|
||||||
public <ReqT, RespT> Context filterContext(Context context) {
|
public Context filterContext(Context context) {
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -309,7 +309,7 @@ final class CensusTracingModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <ReqT, RespT> Context filterContext(Context context) {
|
public Context filterContext(Context context) {
|
||||||
// Access directly the unsafe trace API to create the new Context. This is a safe usage
|
// Access directly the unsafe trace API to create the new Context. This is a safe usage
|
||||||
// because gRPC always creates a new Context for each of the server calls and does not
|
// because gRPC always creates a new Context for each of the server calls and does not
|
||||||
// inherit from the parent Context.
|
// inherit from the parent Context.
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ public class ServerImplTest {
|
||||||
private List<ServerStreamTracer.Factory> streamTracerFactories;
|
private List<ServerStreamTracer.Factory> streamTracerFactories;
|
||||||
private final TestServerStreamTracer streamTracer = new TestServerStreamTracer() {
|
private final TestServerStreamTracer streamTracer = new TestServerStreamTracer() {
|
||||||
@Override
|
@Override
|
||||||
public <ReqT, RespT> Context filterContext(Context context) {
|
public Context filterContext(Context context) {
|
||||||
Context newCtx = super.filterContext(context);
|
Context newCtx = super.filterContext(context);
|
||||||
return newCtx.withValue(SERVER_TRACER_ADDED_KEY, "context added by tracer");
|
return newCtx.withValue(SERVER_TRACER_ADDED_KEY, "context added by tracer");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ public abstract class AbstractInteropTest {
|
||||||
private volatile Context contextCapture;
|
private volatile Context contextCapture;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <ReqT, RespT> Context filterContext(Context context) {
|
public Context filterContext(Context context) {
|
||||||
contextCapture = context;
|
contextCapture = context;
|
||||||
return super.filterContext(context);
|
return super.filterContext(context);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue