correct checkstyle errors

This commit is contained in:
Rick Giles 2003-06-30 20:44:17 +00:00
parent 1bca9cc443
commit 24a774b1e8
4 changed files with 5 additions and 7 deletions

View File

@ -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(),

View File

@ -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);
}

View File

@ -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) {

View File

@ -37,7 +37,7 @@ public class RemoteInterfaceCheck
checkMethods(aAST);
}
}
/**
*
* @see com.puppycrawl.tools.checkstyle.checks.j2ee.AbstractInterfaceCheck