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

Remove commons-collections #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

basil
Copy link
Member

@basil basil commented Apr 26, 2024

Since JDK 1.5 there are native equivalents for all of this functionality.

Testing done

mvn clean verify

@basil basil added the internal label Apr 26, 2024
@basil basil requested a review from BobDu April 26, 2024 00:55
Copy link
Member

@BobDu BobDu left a comment

Choose a reason for hiding this comment

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

LGTM

However, it should be noted that we haven't actually removed commons-collections from the dependency tree of json-lib. Because it is still shipped as a transitive dependency through commons-beanutils.

A possible solution would be to copy the org/apache/commons/collections/FastHashMap.java file into json-lib src. (Similar to the behavior of beanutils before version 1.9. )

I would be willing to open a new PR in the future to discuss its feasibility.

@basil
Copy link
Member Author

basil commented Apr 26, 2024

Indeed, and it wasn't my goal to remove commons-collections from the dependency tree of this plugin. I just wanted to modernize the library a little bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants