core: add @nullable annotation

Subchannel can be nullable, add annotation for consitency
This commit is contained in:
Łukasz Strzałkowski 2017-03-02 21:39:42 -08:00 committed by Carl Mastrangelo
parent f2beea6e9c
commit c5e5903598
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public abstract class LoadBalancer {
// subchannel being null and error being OK means RPC needs to wait
private final Status status;
private PickResult(Subchannel subchannel, Status status) {
private PickResult(@Nullable Subchannel subchannel, Status status) {
this.subchannel = subchannel;
this.status = Preconditions.checkNotNull(status, "status");
}