core: remove unnecessary type params in ServerStreamTracer

This commit is contained in:
ZHANG Dapeng 2017-10-26 12:05:41 -07:00 committed by GitHub
parent 071942dc3b
commit 7a4aa47070
4 changed files with 4 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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.

View File

@ -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");
} }

View File

@ -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);
} }