PMD Results

The following document contains the results of PMD 3.7.

Files

org/apache/xbean/spring/context/ClassPathXmlApplicationContext.java

Violation Line
Avoid unused imports such as 'java.lang.reflect.Constructor' 20
Avoid unused imports such as 'org.springframework.beans.factory.support.BeanDefinitionRegistry' 26
Avoid unused imports such as 'org.springframework.core.SpringVersion' 31

org/apache/xbean/spring/context/impl/NamedConstructorArgs.java

Violation Line
Avoid unused private fields such as 'parameterNames' 252

org/apache/xbean/spring/context/impl/PropertyEditorHelper.java

Violation Line
Avoid empty catch blocks 66 - 67
Avoid empty catch blocks 68 - 69

org/apache/xbean/spring/context/impl/QNameReflectionHelper.java

Violation Line
Avoid empty catch blocks 82 - 84

org/apache/xbean/spring/context/impl/XBeanHelper.java

Violation Line
Avoid unused local variables such as 'spring20Clazz' 36

org/apache/xbean/spring/context/SpringApplicationContext.java

Violation Line
Avoid unused imports such as 'org.springframework.core.io.ClassPathResource' 21

org/apache/xbean/spring/context/v2/XBeanNamespaceHandlerResolver.java

Violation Line
Avoid empty catch blocks 33 - 35

org/apache/xbean/spring/context/v2c/XBeanBeanDefinitionParserDelegate.java

Violation Line
Avoid unused imports such as 'org.apache.xbean.spring.context.impl.PropertyEditorHelper' 22

org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java

Violation Line
Avoid empty if statements 694
These nested if statements could be combined 794 - 801
Avoid empty catch blocks 825 - 827

org/apache/xbean/spring/context/v2c/XBeanQNameHelper.java

Violation Line
Avoid empty catch blocks 96 - 97
Avoid empty catch blocks 104 - 105

org/apache/xbean/spring/context/XmlWebApplicationContext.java

Violation Line
No need to import a type that's in the same package 23

org/apache/xbean/spring/generator/Type.java

Violation Line
Overriding method merely calls super 80 - 82
Overriding method merely calls super 84 - 86

org/apache/xbean/spring/generator/Utils.java

Violation Line
Avoid empty catch blocks 85 - 86

org/apache/xbean/spring/generator/WikiDocumentationGenerator.java

Violation Line
Avoid unused method parameters such as 'namespaceMapping' 136 - 153
Avoid unused method parameters such as 'refercencedTypes' 155 - 163
Avoid unused method parameters such as 'namespaceMapping' 172 - 190

org/apache/xbean/spring/generator/XsdGenerator.java

Violation Line
Avoid unused method parameters such as 'namespaceMapping' 134 - 142