[
https://issues.apache.org/jira/browse/HADOOP-19861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072916#comment-18072916
]
ASF GitHub Bot commented on HADOOP-19861:
-----------------------------------------
slfan1989 opened a new pull request, #8421:
URL: https://github.com/apache/hadoop/pull/8421
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
#### Background
The `hadoop-cos` module currently uses `javax.annotation.Nullable` from the
legacy `javax.annotation-api` package. As part of the Jakarta EE transition, we
should migrate to `jakarta.annotation.Nullable`.
#### Changes
This patch migrates the `hadoop-cos` module from `javax.annotation` to
`jakarta.annotation` with minimal changes:
1. Dependency Management
- Added `jakarta.annotation:jakarta.annotation-api:2.1.1` to parent POM
(`hadoop-project/pom.xml`) dependency management
- Added `jakarta.annotation-api` dependency in `hadoop-cos` module POM
(version inherited from parent)
- Kept `javax.annotation-api` in parent for other modules (coexistence is
acceptable for now)
2. Code Changes
- Replaced `javax.annotation.Nullable` imports with
`jakarta.annotation.Nullable` in 3 files:
- AbstractCOSCredentialsProvider.java
- EnvironmentVariableCredentialsProvider.java
- SimpleCredentialsProvider.java
#### Compatibility
- No API changes - only package name updates
- `jakarta.annotation-api` 2.x uses `jakarta.annotation.*` namespace
- Both `javax.annotation-api` and `jakarta.annotation-api` can coexist in
classpath
- No runtime behavior changes expected
### How was this patch tested?
- Existing unit tests pass
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
If an AI tool was used:
- [ ] The PR includes the phrase "Contains content generated by <tool>"
where <tool> is the name of the AI tool used.
- [ ] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
> Migrate hadoop-cos from javax.annotation to jakarta
> ---------------------------------------------------
>
> Key: HADOOP-19861
> URL: https://issues.apache.org/jira/browse/HADOOP-19861
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: hadoop-cos
> Affects Versions: 3.5.1, 3.6.0
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
>
> The hadoop-cos module currently uses javax.annotation.Nullable from the
> legacy javax.annotation-api package. As part of the Jakarta EE transition, we
> should migrate to jakarta.annotation.Nullable.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]