-
Notifications
You must be signed in to change notification settings - Fork 100
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
Remove warnings #2116
Conversation
6a23f8a
to
3d649a9
Compare
3d649a9
to
00267dc
Compare
@@ -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
} | ||
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
} | ||
// Example: 1234 | ||
return Integer.valueOf( s ); | ||
return Integer.parseInt( s ); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note
@@ -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
...hibernate/reactive/provider/service/AbstractReactiveInformationSchemaBasedExtractorImpl.java
Outdated
Show resolved
Hide resolved
A mischellaneous collection of fixes for warnings that I've noticed working on this issue.
00267dc
to
ad16df0
Compare
Merged |
Solves a miscellaneous list of warnings from IDEA.
I'm not sure it's worth it to have an issue for this