RedundantThrowsCheck raise strange violation #74

Closed
romani opened this Issue Dec 8, 2013 · 4 comments

Comments

Projects
None yet
3 participants
Owner

romani commented Dec 8, 2013

SF issue: #481
Creator: Tim Vernum

http://checkstyle.sourceforge.net/config_coding.html#RedundantThrows

do not try to compile this code, if compilation is successful violation disappear as Exception classes appear in class path.

import javax.transaction.NotSupportedException;
import javax.transaction.SystemException;

public class ShowError {

   protected void beginTransaction() throws NotSupportedException, SystemException {
        // ...
    }

}

Violation: " - Redundant Throws: Redundant throws: 'SystemException' listed more then one time."

Expected: message that Check can not find classes in classpath.

Is there any workaround for this issue? Thanks in advance!

Owner

romani commented Dec 8, 2014

this Check will be removed from Checkstyle - #473

Contributor

ychulovskyy commented Dec 21, 2014

@romani The issue can be closed since #473 has been fixed.

Owner

romani commented Dec 21, 2014

@ychulovskyy , thanks a lot !!

@romani romani closed this Dec 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment