Skip to content

Commit 19d3fda

Browse files
authored
Change to List.of rather than Arrays.asList because it is a List whose values ​​do not change.
1 parent 89cd525 commit 19d3fda

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudPlatform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private boolean isAutoDetected(EnumerablePropertySource<?> environmentPropertySo
154154
*/
155155
AZURE_APP_SERVICE {
156156

157-
private final List<String> azureEnvVariables = Arrays.asList("WEBSITE_SITE_NAME", "WEBSITE_INSTANCE_ID",
157+
private final List<String> azureEnvVariables = List.of("WEBSITE_SITE_NAME", "WEBSITE_INSTANCE_ID",
158158
"WEBSITE_RESOURCE_GROUP", "WEBSITE_SKU");
159159

160160
@Override

0 commit comments

Comments
 (0)