Skip to content

Remove warnings #2116

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

Merged
merged 5 commits into from
Feb 14, 2025
Merged

Remove warnings #2116

merged 5 commits into from
Feb 14, 2025

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Feb 13, 2025

Solves a miscellaneous list of warnings from IDEA.
I'm not sure it's worth it to have an issue for this

@@ -232,15 +232,15 @@
if ( s.indexOf( '/' ) != -1 ) {
// Example: 1234/
s = s.substring( 0, s.indexOf( '/' ) );
return Integer.valueOf( s );
return Integer.parseInt( s );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
}
if ( s.indexOf( '?' ) != -1 ) {
// Example: 1234?param=value
s = s.substring( 0, s.indexOf( '?' ) );
return Integer.valueOf( s );
return Integer.parseInt( s );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
}
// Example: 1234
return Integer.valueOf( s );
return Integer.parseInt( s );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
@@ -330,7 +330,7 @@
if ( startOfPort == -1 ) {
return -1;
}
return Integer.valueOf( hostPortString.substring( startOfPort + 1 ) );
return Integer.parseInt( hostPortString.substring( startOfPort + 1 ) );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
A mischellaneous collection of fixes for warnings that
I've noticed working on this issue.
@DavideD DavideD merged commit fedfcd0 into hibernate:main Feb 14, 2025
19 checks passed
@DavideD
Copy link
Member Author

DavideD commented Feb 14, 2025

Merged

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