Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIVO-3751: Remove ICU4J dependency. #367

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

kaladay
Copy link
Contributor

@kaladay kaladay commented Feb 22, 2023

VIVO GitHub issue: vivo-project/VIVO#3751

What does this pull request do?

This ICU dependency is only used in a handful of places.
The core java libraries provide the same functionality but with a less exchaustive locale database.

The IBM ICU is more up to date than the Java version but is otherwise identical.

What's new?

  • Replaces
    • com.ibm.icu.text.SimpleDateFormat with java.text.SimpleDateFormat
    • com.ibm.icu.text.Collator with java.text.Collator

How should this be tested?

A description of what steps someone could take to:

  • Check maven dependencies to confirm/deny that icu4j no longer appears.
  • Try different locale-specific settings and check dates.
  • Try different locale-specific settings and check sorting (collation).

Additional Notes:

Any additional information that you think would be helpful when reviewing this PR.

IBM's ICU4J reference material:

Interested parties

  • @VIVO-project/vivo-committers

This is only used in a handful of places.
The core java libraries provide the same functionality but with a less exchaustive locale database.

The IBM ICU is more up to date than the Java version but is otherwise identical.

see: https://unicode-org.github.io/icu/userguide/icu4j/#introduction-to-icu4j
@kaladay kaladay changed the title Issue 3751: Remove ICU4J dependency. VIVO-3751: Remove ICU4J dependency. Feb 22, 2023
@chenejac chenejac self-requested a review February 22, 2023 16:48
ghost
ghost previously approved these changes Feb 23, 2023
@chenejac chenejac changed the base branch from infrastructure-improvements to main February 23, 2023 20:41
@chenejac chenejac dismissed ghost ’s stale review February 23, 2023 20:41

The base branch was changed.

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks

@chenejac chenejac merged commit 4d60cd9 into vivo-project:main Feb 27, 2023
@ghost ghost linked an issue Feb 28, 2023 that may be closed by this pull request
@kaladay kaladay deleted the 3751-remove_icu branch March 9, 2023 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove ICU4J dependency
2 participants