1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Merge pull request #9474 from bravenewpipe/avoid-wrong-nullable-notnull-annotation-imports

Forbid wrong `@Nullable` and `@NotNull` annotation imports
This commit is contained in:
Stypox 2022-11-28 14:30:52 +01:00 committed by GitHub
commit 60671c99ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,15 @@
<!-- Checks for imports --> <!-- Checks for imports -->
<!-- See https://checkstyle.org/config_import.html --> <!-- See https://checkstyle.org/config_import.html -->
<module name="AvoidStarImport"/> <module name="AvoidStarImport"/>
<module name="IllegalImport"/> <!-- defaults to sun.* packages --> <module name="IllegalImport"> <!-- defaults to sun.* packages -->
<property name="illegalClasses" value="
org.jetbrains.annotations.Nullable,
org.jetbrains.annotations.NotNull,
javax.annotation.Nullable,
javax.annotation.Nonnull,
io.reactivex.rxjava3.annotations.NonNull,
io.reactivex.rxjava3.annotations.Nullable" />
</module>
<module name="RedundantImport"/> <module name="RedundantImport"/>
<module name="UnusedImports"/> <module name="UnusedImports"/>