void (boolean value) { try { if (value) { throw new ClassNotFoundException(); } else { throw new NumberFormatException(); } } catch(ClassNotFoundException cnfe) { log(cnfe); } <warning descr="'catch' branch identical to 'ClassNotFoundException' branch">catch(NumberFormatException n<caret>fe)</warning> { log(nfe); } }