git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3833 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-09-08 23:57:52 +00:00
parent 7863dc6c78
commit 550bc4c8be

View File

@ -70,9 +70,7 @@ public class AttributeAxisIterator implements Iterator {
Method method = methods[position];
try {
Class returnType = method.getReturnType();
if (Boolean.TYPE == returnType
|| String.class == returnType
|| Integer.TYPE == returnType) {
if (Boolean.TYPE == returnType || String.class == returnType || Integer.TYPE == returnType) {
Attribute attribute = getAttribute(node, method);
if (attribute != null) {
return attribute;