Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-6276] Replace Deprecated Number Constructors for Java 11 - #5027
Merged
Conversation
celinaykforce-pushed
the
feature/replace-constructors
branch
from
August 16, 2025 04:30
c7cb1b8 to
7303e7aCompareReamer
requested changes
Aug 16, 2025
Uh oh!
There was an error while loading. Please reload this page.
Reamer
commented
Aug 16, 2025
Contributor
Thank you for your contribution. I only found one small thing that can be directly improved in this PR. |
celinayk
commented
Aug 17, 2025
ContributorAuthor
Thanks for the review! Fixed to catch only NumberFormatException. |
Uh oh!
There was an error while loading. Please reload this page.
asf-gitbox-commits pushed a commit
that referenced
this pull request
Aug 19, 2025
### What is this PR for? This PR removes usages of deprecated Number constructors (e.g., `new Integer()`, `new Double()`, `new Long()`) and replaces them with factory methods such as `valueOf()` or `parseXxx()` methods. The goal is to improve Java 11 compatibility and eliminate compiler warnings related to deprecated APIs. ### What type of PR is it? Refactoring ### Todos * [x] - Replace deprecated constructors * [x] - Verify compatibility with Java 11 ### What is the Jira issue? [ZEPPELIN-6276](https://issues.apache.org/jira/browse/ZEPPELIN-6276) ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes#5027 from celinayk/feature/replace-constructors. Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com> (cherry picked from commit 27e9b8f) Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com>
Reamer
commented
Aug 19, 2025
Contributor
Merged into master and branch-0.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR for?
This PR removes usages of deprecated Number constructors (e.g.,
new Integer(),new Double(),new Long()) and replaces them with factory methods such asvalueOf()orparseXxx()methods.The goal is to improve Java 11 compatibility and eliminate compiler warnings related to deprecated APIs.
What type of PR is it?
Refactoring
Todos
What is the Jira issue?
ZEPPELIN-6276
How should this be tested?
Screenshots (if appropriate)
Questions: