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:
parent
721bd2c690
commit
a47526404d
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue