Skip to content

Commit

Permalink
Add null check and swap comment to javadoc style.
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-safran committed Feb 11, 2025
1 parent 10e5334 commit 8e3cf95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xds/src/main/java/io/grpc/xds/XdsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static final class XdsClusterConfig {
XdsClusterConfig(String clusterName, CdsUpdate clusterResource, ClusterChild details) {
this.clusterName = checkNotNull(clusterName, "clusterName");
this.clusterResource = checkNotNull(clusterResource, "clusterResource");
this.children = details;
this.children = checkNotNull(details, "details");
}

@Override
Expand Down Expand Up @@ -152,8 +152,9 @@ public ClusterChild getChildren() {

interface ClusterChild {}

// Endpoint info for EDS and LOGICAL_DNS clusters. If there was an
// error, endpoints will be null and resolution_note will be set.
/** Endpoint info for EDS and LOGICAL_DNS clusters. If there was an
* error, endpoints will be null and resolution_note will be set.
*/
static final class EndpointConfig implements ClusterChild {
private final StatusOr<EdsUpdate> endpoint;

Expand Down

0 comments on commit 8e3cf95

Please sign in to comment.