mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-09 05:45:58 +00:00
Fix usages of javax's Nullable annotation
This commit is contained in:
@@ -38,7 +38,7 @@ class ForbiddenImport : BugChecker(), BugChecker.ImportTreeMatcher {
|
||||
companion object {
|
||||
private val ALTERNATIVE_IMPORTS = mapOf(
|
||||
// Ban JSR 305 and JetBrains @Nullable, and prefer the JSpecify one.
|
||||
"org.javax.annotation.Nullable" to "org.jspecify.annotations.Nullable",
|
||||
"javax.annotation.Nullable" to "org.jspecify.annotations.Nullable",
|
||||
"org.jetbrains.annotations.Nullable" to "org.jspecify.annotations.Nullable",
|
||||
// Prefer ErrorProne annotations over JSR ones.
|
||||
"javax.annotation.CheckReturnValue" to "com.google.errorprone.annotations.CheckReturnValue",
|
||||
|
Reference in New Issue
Block a user