- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.8k
[ZEPPELIN-6276] Replace Deprecated Number Constructors for Java 11 #5027
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
Conversation
c7cb1b8    to
    7303e7a      
    Compare
  
            
          
                zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/KerberosInterpreter.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 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. | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
### 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 <[email protected]> (cherry picked from commit 27e9b8f) Signed-off-by: Philipp Dallig <[email protected]>
| Merged into master and branch-0.12 | 
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: