You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2025/12/23 04:05:24 UTC

[I] Remove org.jetbrains.annotations imports [hudi]

yihua opened a new issue, #17678:
URL: https://github.com/apache/hudi/issues/17678

   ### Task Description
   
   **What needs to be done:**
   
   As above.
   
   **Why this task is needed:**
   
   `org.jetbrains.annotations.*` causes build failures on Java 17.
   
   Current annotation usage:
   ```
     | Annotation                  | Usage                     |
     |-----------------------------|---------------------------|
     | javax.annotation.*          | 82 occurrences (80 files) |
     | org.jetbrains.annotations.* | 18 occurrences (18 files) |
   ```
   We should use `javax.annotation.Nullable`/`javax.annotation.Nonnull` instead.
   
   Reasons:
     1. Standard API - Part of JSR-305, more widely recognized across Java ecosystem
     2. Framework compatibility - Better supported by static analysis tools like SpotBugs, Error Prone, and most IDEs
     3. No vendor lock-in - JetBrains annotations are IDE-specific
   
   
   ### Task Type
   
   Code improvement/refactoring
   
   ### Related Issues
   
   **Parent feature issue:** (if applicable )
   **Related issues:**
   NOTE: Use `Relationships` button to add parent/blocking issues after issue is created.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Remove org.jetbrains.annotations imports [hudi]

Posted by "voonhous (via GitHub)" <gi...@apache.org>.
voonhous closed issue #17678: Remove org.jetbrains.annotations imports
URL: https://github.com/apache/hudi/issues/17678


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org