resources.report.rules.pmd.EmptyTryBlock.html Maven / Gradle / Ivy
EmptyTryBlock
EmptyTryBlock
Avoid empty try blocks - what’s the point?
//TryStatement/Block[1][count(*) = 0]
Example(s):
public class Foo {
public void bar() {
try {
} catch (Exception e) {
e.printStackTrace();
}
}
}