Skip to content

[ZEPPELIN-6276] Replace Deprecated Number Constructors for Java 11 - #5027

Merged
Reamer merged 2 commits into
apache:masterfrom
celinayk:feature/replace-constructors
Aug 19, 2025
Merged

[ZEPPELIN-6276] Replace Deprecated Number Constructors for Java 11#5027
Reamer merged 2 commits into
apache:masterfrom
celinayk:feature/replace-constructors

Conversation

@celinayk

Copy link
Copy Markdown
Contributor

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

  • - Replace deprecated constructors
  • - Verify compatibility with Java 11

What is the Jira issue?

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

@celinaykcelinayk changed the title ZEPPELIN-6276: Replace Deprecated Number Constructors for Java 11[ZEPPELIN-6276]: Replace Deprecated Number Constructors for Java 11Aug 16, 2025
@celinayk
celinaykforce-pushed the feature/replace-constructors branch from c7cb1b8 to 7303e7aCompareAugust 16, 2025 04:30
@celinaykcelinayk changed the title [ZEPPELIN-6276]: Replace Deprecated Number Constructors for Java 11[ZEPPELIN-6276] Replace Deprecated Number Constructors for Java 11Aug 16, 2025
@Reamer

Copy link
Copy Markdown
Contributor

Thank you for your contribution. I only found one small thing that can be directly improved in this PR.

@celinayk

Copy link
Copy Markdown
ContributorAuthor

Thank you for your contribution. I only found one small thing that can be directly improved in this PR.

Thanks for the review! Fixed to catch only NumberFormatException.

@ReamerReamer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, let's wait for CI

@ReamerReamer self-assigned this Aug 19, 2025

@ParkGyeongTaeParkGyeongTae left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 LGTM

@Reamer
Reamer merged commit 27e9b8f into apache:masterAug 19, 2025
17 of 18 checks passed
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

Copy link
Copy Markdown
Contributor

Merged into master and branch-0.12

Sign up for freeto 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.

3 participants

@celinayk@Reamer@ParkGyeongTae