diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/performance/UnnecessaryWrapperObjectCreationRule.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/performance/UnnecessaryWrapperObjectCreationRule.java index 0578c4ad17..c3131f7bd1 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/performance/UnnecessaryWrapperObjectCreationRule.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/performance/UnnecessaryWrapperObjectCreationRule.java @@ -23,7 +23,7 @@ public class UnnecessaryWrapperObjectCreationRule extends AbstractJavaRule { private static final Set PREFIX_SET = setOf("Byte.valueOf", "Short.valueOf", "Integer.valueOf", "Long.valueOf", "Float.valueOf", "Double.valueOf", "Character.valueOf"); - private static final Set SUFFIX_SET = setOf( "toString", "byteValue", + private static final Set SUFFIX_SET = setOf("toString", "byteValue", "shortValue", "intValue", "longValue", "floatValue", "doubleValue", "charValue"); @Override