void (boolean value) { try { if (value) { throw new ClassNotFoundException(); } else { throw new NumberFormatException(); } } catch(ClassNotFoundException cnfe) { System.out.println(); } <warning descr="'catch' branch identical to 'ClassNotFoundException' branch">catch(NumberFormatException nfe)</warning> { System.out.println(); } }