Details
-
Bug
-
Resolution: Fixed
-
High
-
3.1.5
-
None
Description
Clover instrumenter does not handle the @SuppressWarnings annotation placed before exception type in the catch clause. See following examples:
protected void testWithAnnotation() throws IOException { try { //FAILS } catch (@SuppressWarnings("unused") RuntimeException ioe) { } } protected void testWithoutAnnotation() throws IOException { try { // OK } catch (RuntimeException ioe) { } }