fix: java 17 test errors in functions.EnvVarsTest (#7144)
fix: java 17 test errors in functions.EnvVarsTest (#7144)


GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples,GoogleCloudPlatform/java-docs-samples