TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Basic4Checked automatically with code checker

Synopsis:Avoid empty try blocks
Language:Java
Severity Level:1
Category:Basic


Description:
Avoid empty try blocks - what's the point?
public class Foo {
 public void bar() {
  try {
  } catch (Exception e) {
    e.printStackTrace();
  }
 }
}