Skip to content

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

// 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'.
// 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'.
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