git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7065 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Brian Remedios
2010-01-16 14:41:36 +00:00
parent 673e614a38
commit 9bce16bde0

View File

@ -328,10 +328,8 @@ public class RuleSetWriter {
propertyElement.setAttribute("delimiter", String.valueOf(propertyDescriptor.multiValueDelimiter()));
}
if (propertyDescriptor instanceof AbstractNumericProperty) {
propertyElement.setAttribute("min", String.valueOf(((AbstractNumericProperty<?>) propertyDescriptor)
.lowerLimit()));
propertyElement.setAttribute("max", String.valueOf(((AbstractNumericProperty<?>) propertyDescriptor)
.lowerLimit()));
propertyElement.setAttribute("min", String.valueOf(((AbstractNumericProperty<?>) propertyDescriptor).lowerLimit()));
propertyElement.setAttribute("max", String.valueOf(((AbstractNumericProperty<?>) propertyDescriptor).upperLimit()));
}
return propertyElement;