mirror of https://github.com/grpc/grpc-java.git
core: remove thisT() from API
This commit is contained in:
parent
813cb090af
commit
8493498a54
|
|
@ -220,7 +220,7 @@ public abstract class ManagedChannelBuilder<T extends ManagedChannelBuilder<T>>
|
|||
/**
|
||||
* Returns the correctly typed version of the builder.
|
||||
*/
|
||||
protected final T thisT() {
|
||||
private T thisT() {
|
||||
@SuppressWarnings("unchecked")
|
||||
T thisT = (T) this;
|
||||
return thisT;
|
||||
|
|
|
|||
|
|
@ -422,4 +422,13 @@ public abstract class AbstractManagedChannelImplBuilder
|
|||
return DIRECT_ADDRESS_SCHEME;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the correctly typed version of the builder.
|
||||
*/
|
||||
private T thisT() {
|
||||
@SuppressWarnings("unchecked")
|
||||
T thisT = (T) this;
|
||||
return thisT;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue