void () { Throwable causeException; try { throw new NullPointerException(); } catch (final NullPointerException e) { causeException = e; } <warning descr="'catch' branch identical to 'NullPointerException' branch">catch (final IllegalArgumentException e)</warning> { causeException = e; } <warning descr="'catch' branch identical to 'NullPointerException' branch">catch (final IndexOutOfBoundsException e)</warning> { causeException = e; } System.out.println("causeException = " + causeException); }