Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checkstyle not detecting @throws tag

Checkstyle keeps giving me this error:

Expected @throws tag for RemoteException

This is my javadoc comments and first line of method:

   /**
     * Inits the filter
     *
     * @throws RemoteException if there is an issue
     */

    public void init() throws RemoteException {
like image 825
john cs Avatar asked Apr 04 '15 23:04

john cs


1 Answers

Really hope this helps someone:

/*
* @throws SomeExceptionPresentOnImports             some text
* @throws com.myorg.SomeExceptionPresentOnImports1  some text
*/

Both are reported as errors

but if you remove the fully qualified names it will not complain.

/*
* @throws SomeExceptionPresentOnImports   some text
* @throws SomeExceptionPresentOnImports1  some text
*/
like image 86
Ruslan López Avatar answered Oct 01 '22 12:10

Ruslan López