Add IllegalArgumentException and IllegalStateException to ThrowingExceptionsWithoutMessageOrCause#4013
Add IllegalArgumentException and IllegalStateException to ThrowingExceptionsWithoutMessageOrCause#4013BraisGabin merged 1 commit intomainfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4013 +/- ##
=========================================
Coverage 83.55% 83.55%
Complexity 3181 3181
=========================================
Files 459 459
Lines 9083 9085 +2
Branches 1771 1771
=========================================
+ Hits 7589 7591 +2
Misses 561 561
Partials 933 933
Continue to review full report at Codecov.
|
schalkms
left a comment
There was a problem hiding this comment.
What was the reason for removing these exceptions in the first place?
|
Previously the situation was: /**
* @configuration exceptions - exceptions which should not be thrown without message or cause
* (default: `- IllegalArgumentException
* - IllegalStateException
* - IOException`)
**/
...
private val exceptionsDefaults = listOf(
"ArrayIndexOutOfBoundsException",
"Error",
"Exception",
"IllegalMonitorStateException",
"NullPointerException",
"IndexOutOfBoundsException",
"RuntimeException",
"Throwable"
)So there was quite a mismatch between what was configured and what was documented. |
|
Yeah, but if you used the "default config" as "default" you were using the "documentation" instead of the real default values. For that reason I think that it is kind of a regresion. |
marschwar
left a comment
There was a problem hiding this comment.
Please run gradlew generateDocumentation to update the default config.
Good call! 🤔 we have a problem with CI here, right? Why I'm getting green if I forgot about that? |
…eptionsWithoutMessageOrCause
|
That check is gone for quite some time. I have no idea when and why. |
This two exceptions where removed but I think that we should keep them.
Fix #4012