Ban jetbrains annotations imports

Closes gh-28226
This commit is contained in:
Yanming Zhou
2022-03-24 09:00:03 +08:00
committed by Brian Clozel
parent 8fc744f4f4
commit acf2955b96
2 changed files with 7 additions and 3 deletions

View File

@@ -20,9 +20,8 @@ import java.util.Iterator;
import java.util.function.Consumer;
import java.util.function.Supplier;
import org.jetbrains.annotations.NotNull;
import org.springframework.core.metrics.StartupStep;
import org.springframework.lang.NonNull;
/**
* {@link StartupStep} implementation for the Java Flight Recorder.
@@ -115,7 +114,7 @@ class FlightRecorderStartupStep implements StartupStep {
add(key, value.get());
}
@NotNull
@NonNull
@Override
public Iterator<Tag> iterator() {
return new TagsIterator();

View File

@@ -134,6 +134,11 @@
<property name="regexp" value="true" />
<property name="illegalClasses" value="^org\.hamcrest\..+" />
</module>
<module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
<property name="id" value="bannedJetbrainsAnnotationsImports"/>
<property name="regexp" value="true" />
<property name="illegalClasses" value="^org\.jetbrains\.annotations\..+" />
</module>
<!-- Javadoc Comments -->
<module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck">