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

Replace deprecated Integer constructor w/ valueOf #10

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

bact
Copy link
Collaborator

@bact bact commented Dec 17, 2024

The Integer(int) constructor is deprecated in Java 9.

Note that the project targets Java 8 (1.8), so it is fine without changes.

The proposed code works with Java 8 and beyond.

Copy link
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks @bact

@goneall goneall merged commit 24bab74 into spdx:main Dec 17, 2024
3 checks passed
@bact bact deleted the fix-deprecated branch December 17, 2024 20:00
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.

2 participants