Skip to content

Commit

Permalink
Ban nullable annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Oct 11, 2024
1 parent b213b8e commit 75b39a6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2534,6 +2534,20 @@
<bannedImport>org.testng.asserts.**</bannedImport>
</bannedImports>
</RestrictImports>
<RestrictImports>
<reason>Trino assumes non-nullness by default, otherwise it's marked as @Nullable</reason>
<bannedImports>
<bannedImport>jakarta.annotation.Nonnull</bannedImport>
<bannedImport>org.jetbrains.annotations.NotNull</bannedImport>
</bannedImports>
<notFixable>
<in>io.trino.cache.ElementTypesAreNonnullByDefault</in>
<allowedImports>
<allowedImport>jakarta.annotation.Nonnull</allowedImport>
</allowedImports>
<because>Extending Guava's API</because>
</notFixable>
</RestrictImports>
<RestrictImports>
<bannedImports>
<bannedImport>com.google.api.client.util.Preconditions</bannedImport>
Expand Down

0 comments on commit 75b39a6

Please sign in to comment.