Ban jetbrains annotations imports
Closes gh-28226
This commit is contained in:
committed by
Brian Clozel
parent
8fc744f4f4
commit
acf2955b96
@@ -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();
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user