2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-31 14:26:14 +00:00

Block wrong nullable/nonnull imports in checkstyle

This commit is contained in:
Stypox
2022-11-28 14:42:18 +01:00
parent f8162b049d
commit 5f6101698b

View File

@@ -96,7 +96,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,
androidx.annotation.Nullable,
androidx.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"/>