Skip to content

Commit 3b01325

Browse files
committed
Use asList consistently
Closes gh-32102
1 parent 191593c commit 3b01325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationImportSelector.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -228,7 +228,7 @@ protected void handleInvalidExcludes(List<String> invalidExcludes) {
228228
protected Set<String> getExclusions(AnnotationMetadata metadata, AnnotationAttributes attributes) {
229229
Set<String> excluded = new LinkedHashSet<>();
230230
excluded.addAll(asList(attributes, "exclude"));
231-
excluded.addAll(Arrays.asList(attributes.getStringArray("excludeName")));
231+
excluded.addAll(asList(attributes, "excludeName"));
232232
excluded.addAll(getExcludeAutoConfigurationsProperty());
233233
return excluded;
234234
}

0 commit comments

Comments
 (0)