core: remove thisT() from API

This commit is contained in:
Carl Mastrangelo 2017-01-11 12:46:47 -08:00 committed by GitHub
parent 813cb090af
commit 8493498a54
2 changed files with 10 additions and 1 deletions

View File

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

View File

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