mirror of https://github.com/grpc/grpc-java.git
core: add @nullable annotation
Subchannel can be nullable, add annotation for consitency
This commit is contained in:
parent
f2beea6e9c
commit
c5e5903598
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue