You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2020. It is now read-only.
The SecureHttpClientFactory violates the AvoidThrowingRawExceptionTypes rule.
Avoid throwing certain exception types. Rather than throw a raw RuntimeException, Throwable, Exception, or Error, use a subclassed exception or error instead.
I assume an unchecked exception has been chosen because an interface method is implemented that does not declare any exception. So, the interface expects that the method does not fail (it also don't accept a nullable return value AFAIK).
Do we need to use an unchecked one or would it make sense to change the interface to "allow" also a non successful return?
Should we use more specific unchecked exceptions?
If this gets solved, we could remove the suppression defined in tools/static-code-analysis/pmd/suppressions.properties.
The text was updated successfully, but these errors were encountered:
The
SecureHttpClientFactory
violates theAvoidThrowingRawExceptionTypes
rule.Continues: #5318 (comment)
I assume an unchecked exception has been chosen because an interface method is implemented that does not declare any exception. So, the interface expects that the method does not fail (it also don't accept a nullable return value AFAIK).
Do we need to use an unchecked one or would it make sense to change the interface to "allow" also a non successful return?
Should we use more specific unchecked exceptions?
If this gets solved, we could remove the suppression defined in
tools/static-code-analysis/pmd/suppressions.properties
.The text was updated successfully, but these errors were encountered: