correct checkstyle errors
This commit is contained in:
parent
1bca9cc443
commit
24a774b1e8
|
|
@ -119,7 +119,7 @@ public class AbstractInterfaceCheck
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks that an AST contains the definition of a findByPrimaryKey
|
||||
* method.
|
||||
|
|
@ -127,8 +127,7 @@ public class AbstractInterfaceCheck
|
|||
*/
|
||||
protected void checkFindByPrimaryKey(DetailAST aAST)
|
||||
{
|
||||
if (!Utils.hasPublicMethod(aAST, "findByPrimaryKey", false, 1))
|
||||
{
|
||||
if (!Utils.hasPublicMethod(aAST, "findByPrimaryKey", false, 1)) {
|
||||
final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT);
|
||||
log(
|
||||
aAST.getLineNo(),
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
package com.puppycrawl.tools.checkstyle.checks.j2ee;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
|
||||
|
||||
/**
|
||||
* Checks the create and find methods of a home interface.
|
||||
|
|
@ -48,7 +47,7 @@ public class HomeInterfaceCheck
|
|||
|
||||
// every method must throw java.rmi.RemoteException
|
||||
checkThrows(aAST, "java.rmi.RemoteException");
|
||||
|
||||
|
||||
// a home interface must have a findByPrimaryKey method
|
||||
checkFindByPrimaryKey(aAST);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class LocalHomeInterfaceCheck
|
|||
|
||||
// a home interface must have a findByPrimaryKey method
|
||||
checkFindByPrimaryKey(aAST);
|
||||
|
||||
|
||||
// every method must not throw java.rmi.RemoteException
|
||||
final DetailAST objBlock = aAST.findFirstToken(TokenTypes.OBJBLOCK);
|
||||
if (objBlock != null) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class RemoteInterfaceCheck
|
|||
checkMethods(aAST);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @see com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractInterfaceCheck
|
||||
|
|
|
|||
Loading…
Reference in New Issue