-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
a:false-positivePMD flags a piece of code that is not problematicPMD flags a piece of code that is not problematic
Milestone
Description
PMD version 6.13.0.
Rule: PreserveStackTrace
try {
...
} catch (IOException exception) {
if (exception.getMessage().contains("foobar")) {
throw new SomeOtherUserDefinedException("Error", exception);
}
throw exception;
}
This code produces a PreserveStackTrace
error but it shouldn't according to the documentation of PreserveStackTrace
.
Metadata
Metadata
Assignees
Labels
a:false-positivePMD flags a piece of code that is not problematicPMD flags a piece of code that is not problematic