File tree Expand file tree Collapse file tree
s2a/src/main/java/io/grpc/s2a Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919import static com .google .common .base .Preconditions .checkArgument ;
2020import static com .google .common .base .Preconditions .checkNotNull ;
21- import static com .google .common .base .Preconditions .checkState ;
2221import static com .google .common .base .Strings .isNullOrEmpty ;
2322
2423import com .google .errorprone .annotations .CanIgnoreReturnValue ;
@@ -109,8 +108,6 @@ public Builder setLocalUid(String localUid) {
109108 }
110109
111110 public ChannelCredentials build () throws IOException {
112- checkState (!isNullOrEmpty (s2aAddress ), "S2A address must not be null or empty." );
113- checkNotNull (s2aChannelCredentials , "S2A channel credentials must not be null" );
114111 ObjectPool <Channel > s2aChannelPool =
115112 SharedResourcePool .forResource (
116113 S2AHandshakerServiceChannel .getChannelResource (s2aAddress , s2aChannelCredentials ));
You can’t perform that action at this time.
0 commit comments