Skip to content

Commit c087d60

Browse files
committed
Polish "Prevent imports of null-safety annotations"
See gh-30406
1 parent 0e99c57 commit c087d60

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)