Skip to content

Commit 3de0245

Browse files
committed
Merge branch '2.7.x'
2 parents a59f60c + 64888b0 commit 3de0245

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import java.util.Iterator;
2828
import java.util.List;
2929

30-
import org.jetbrains.annotations.NotNull;
31-
3230
import org.springframework.core.io.UrlResource;
3331
import org.springframework.util.Assert;
3432

@@ -54,7 +52,6 @@ private ImportCandidates(List<String> candidates) {
5452
this.candidates = Collections.unmodifiableList(candidates);
5553
}
5654

57-
@NotNull
5855
@Override
5956
public Iterator<String> iterator() {
6057
return this.candidates.iterator();

src/checkstyle/checkstyle.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
1414
<property name="regexp" value="true" />
1515
<property name="illegalPkgs"
16-
value="^sun.*, ^org\.apache\.commons\.(?!compress|dbcp2|logging|pool2).*, ^com\.datastax\.oss\.driver\.shaded.*, ^com\.google\.common.*, ^io\.micrometer\.shaded.*, ^org\.testcontainers\.shaded.*" />
16+
value="^sun.*, ^org\.apache\.commons\.(?!compress|dbcp2|logging|pool2).*, ^com\.datastax\.oss\.driver\.shaded.*, ^com\.google\.common.*, ^io\.micrometer\.shaded.*,
17+
^org\.jetbrains\.annotations.*, ^org\.testcontainers\.shaded.*" />
1718
<property name="illegalClasses"
1819
value="^com\.hazelcast\.util\.Base64, ^org\.junit\.rules\.ExpectedException, ^org\.mockito\.InjectMocks, ^org\.slf4j\.LoggerFactory, ^org.springframework.context.annotation.ScannedGenericBeanDefinition, ^reactor\.core\.support\.Assert"/>
1920
</module>

src/checkstyle/import-control.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!DOCTYPE import-control PUBLIC "-//Checkstyle//DTD ImportControl Configuration 1.4//EN" "https://checkstyle.org/dtds/import_control_1_4.dtd">
33
<import-control pkg="org.springframework.boot">
44
<disallow pkg="io.micrometer" />
5+
<disallow pkg="org.springframework.lang" />
56
<allow pkg=".*" regex="true" />
67
<subpackage name="autoconfigure">
78
<disallow class="org.springframework.boot.autoconfigure.jdbc.DataSourceProperties"/>
@@ -45,6 +46,13 @@
4546
<subpackage name="endpoint">
4647
<disallow pkg="org.springframework.http" />
4748
<disallow pkg="org.springframework.web" />
49+
<subpackage name="invoke">
50+
<subpackage name="reflect">
51+
<file name="OperationMethodParameter">
52+
<allow pkg="org.springframework.lang"/>
53+
</file>
54+
</subpackage>
55+
</subpackage>
4856
<subpackage name="web">
4957
<allow pkg="org.springframework.http" />
5058
<allow pkg="org.springframework.web" />
@@ -56,6 +64,9 @@
5664
</subpackage>
5765
</subpackage>
5866
</subpackage>
67+
<file name=".*Endpoint(WebExtension)?" regex="true">
68+
<allow pkg="org.springframework.lang"/>
69+
</file>
5970
</subpackage>
6071

6172
<subpackage name="docs">

0 commit comments

Comments
 (0)