PMD Results

The following document contains the results of PMD 5.0.2.

Files

de/smartics/properties/api/core/app/JndiContext.java

Violation Line
This class has too many methods, consider refactoring it. 37 - 394

de/smartics/properties/api/core/domain/PropertiesContext.java

Violation Line
The String literal ".xml" appears 4 times in this file; the first occurrence is on line 512 512

de/smartics/properties/spi/core/config/FactoriesConfiguration.java

Violation Line
New exception is thrown in catch block, original stack trace may be lost 164 - 165

de/smartics/properties/spi/core/constraints/ListValueConstraint.java

Violation Line
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 246
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 248

de/smartics/properties/spi/core/constraints/PropertyRangeConstraint.java

Violation Line
StringBuffer constructor is initialized with size 16, but has at least 36 characters appended. 97

de/smartics/properties/spi/core/metadata/PropertyMetaData.java

Violation Line
Too many fields 48 - 852
Too many fields 232 - 686

de/smartics/properties/spi/core/metadata/PropertyMetaDataDefaults.java

Violation Line
This class has too many methods, consider refactoring it. 32 - 335

de/smartics/properties/spi/core/metadata/PropertyMetaDataParser.java

Violation Line
High amount of different objects as members denotes a high coupling 16 - 660

de/smartics/properties/spi/core/metadata/projectdoc/ProjectdocMetaDataParser.java

Violation Line
Abstract classes should be named AbstractXXX 48 - 512
This class has too many methods, consider refactoring it. 49 - 512
In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. 279

de/smartics/properties/spi/core/metadata/projectdoc/PropertyProjectdocParser.java

Violation Line
Avoid catching NullPointerException; consider removing the cause of the NPE. 198

de/smartics/properties/spi/core/metadata/projectdoc/PropertySetProjectdocParser.java

Violation Line
Avoid protected fields in a final class. Change to private or package access. 49 - 51

de/smartics/properties/spi/core/registry/InMemoryPropertyDescriptorRegistry.java

Violation Line
StringBuffer constructor is initialized with size 16, but has at least 35 characters appended. 438

de/smartics/properties/spi/core/util/SerializableMethod.java

Violation Line
Avoid assignments in operands 160

de/smartics/properties/spi/core/value/CollectionPropertyValueRange.java

Violation Line
Local variable 'value' could be declared final 97
Local variable 'value' could be declared final 107
Local variable 'value' could be declared final 192

de/smartics/properties/spi/core/value/EnumeratedPropertyValueRange.java

Violation Line
Local variable 'element' could be declared final 149