rename Check.getTokens() to getTokenNames() so BeanUtils

can find the setter method and is not confused about
the type of the bean property
This commit is contained in:
Lars Kühne 2002-12-01 10:46:39 +00:00
parent 721bd2c690
commit a47526404d
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ public final class TreeWalker
void registerCheck(Check aCheck)
throws CheckstyleException
{
final Set checkTokens = aCheck.getTokens();
final Set checkTokens = aCheck.getTokenNames();
if (!checkTokens.isEmpty()) {
int acceptableTokens[] = aCheck.getAcceptableTokens();
Arrays.sort(acceptableTokens);

View File

@ -104,7 +104,7 @@ public abstract class Check extends AutomaticBean
* Returns the tokens registered for the check.
* @return the set of token names
*/
final public Set getTokens()
final public Set getTokenNames()
{
return mTokens;
}