From 8e3cf9542c467486e518b709d70b3a2b2afac4d3 Mon Sep 17 00:00:00 2001 From: Larry Safran Date: Mon, 10 Feb 2025 16:26:39 -0800 Subject: [PATCH] Add null check and swap comment to javadoc style. --- xds/src/main/java/io/grpc/xds/XdsConfig.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xds/src/main/java/io/grpc/xds/XdsConfig.java b/xds/src/main/java/io/grpc/xds/XdsConfig.java index ee75992ba42..7af03caf4be 100644 --- a/xds/src/main/java/io/grpc/xds/XdsConfig.java +++ b/xds/src/main/java/io/grpc/xds/XdsConfig.java @@ -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 @@ -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 endpoint;