Skip to content

Commit

Permalink
parse boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dapengzhang0 committed Jul 31, 2020
1 parent c700e81 commit cefc8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xds/src/main/java/io/grpc/xds/XdsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ public synchronized XdsClient returnObject(Object object) {
*/
abstract static class XdsChannelFactory {
@VisibleForTesting
static boolean experimentalV3SupportEnvVar = Boolean.getBoolean(
System.getenv("GRPC_XDS_EXPERIMENTAL_V3_SUPPORT"));
static boolean experimentalV3SupportEnvVar = Boolean.parseBoolean(
"GRPC_XDS_EXPERIMENTAL_V3_SUPPORT");

private static final String XDS_V3_SERVER_FEATURE = "xds_v3";
private static final XdsChannelFactory DEFAULT_INSTANCE = new XdsChannelFactory() {
Expand Down

0 comments on commit cefc8a3

Please sign in to comment.