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 }}
Repository navigation
[java] AvoidThrowingNewInstanceOfSameException: message inconsistent with logic #6844
PMD reports a violation with message "A catch statement that catches an exception only to wrap it in a new instance of the same type of exception and throw it should be avoided". The given code does not wrap the caught exception. The code does create a new instance. Please do one of the following; I prefer the former:
change the logic to only issue the error if the newly-thrown exception wraps the original one, or
Activity
[java] Fix AvoidThrowingNewInstanceOfSameException false positive (pm…