Apache MyFaces
UI-Component Sets
Foundation

PMD Results

The following document contains the results of PMD 4.2.5.

Files

org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java: Can't use annotations when running in JDK 1.4 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java: Can't use annotations when running in JDK 1.4 mode!0

org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java: Can't use annotations when running in JDK 1.4 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/base/junit4/AbstractJsfTestCase.java: Can't use annotations when running in JDK 1.4 mode!0

org/apache/myfaces/test/config/ResourceBundleVarNames.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/config/ResourceBundleVarNames.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/config/ResourceBundleVarNames.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/el/ExpressionTokenizer.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/ExpressionTokenizer.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/ExpressionTokenizer.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/el/FacesImplicitObjectELResolver.java

ViolationLine
Avoid unused local variables such as 'fcontext'.100

org/apache/myfaces/test/el/FacesPropertyResolverChainWrapper.java

ViolationLine
Avoid unused local variables such as 'elContext'.91
Avoid unused local variables such as 'elContext'.144
Avoid unused local variables such as 'elContext'.196
Avoid unused local variables such as 'elContext'.250

org/apache/myfaces/test/el/FacesResourceBundleELResolver.java

ViolationLine
Avoid unused local variables such as 'value'.83

org/apache/myfaces/test/el/FacesScopedAttributeELResolver.java

ViolationLine
Avoid unused local variables such as 'map'.80
Avoid unused local variables such as 'result'.243

org/apache/myfaces/test/el/FacesVariableResolverChainWrapper.java

ViolationLine
Avoid unused local variables such as 'econtext'.113
Avoid unused local variables such as 'elContext'.116

org/apache/myfaces/test/el/MockCompositeValueExpression.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/MockCompositeValueExpression.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/MockCompositeValueExpression.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/el/MockExpressionFactory.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/MockExpressionFactory.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/MockExpressionFactory.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/el/ReservedWordsELResolver.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/ReservedWordsELResolver.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/el/ReservedWordsELResolver.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/htmlunit/junit4/AbstractHtmlUnitTestCase.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/htmlunit/junit4/AbstractHtmlUnitTestCase.java: Can't use annotations when running in JDK 1.4 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/htmlunit/junit4/AbstractHtmlUnitTestCase.java: Can't use annotations when running in JDK 1.4 mode!0

org/apache/myfaces/test/mock/MockFacesContext.java

ViolationLine
Avoid unused private fields such as 'lifecycle'.110

org/apache/myfaces/test/mock/MockHttpServletRequest.java

ViolationLine
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 !755

org/apache/myfaces/test/mock/MockHttpServletResponse.java

ViolationLine
Avoid unused private fields such as 'contentLength'.139

org/apache/myfaces/test/mock/MockMethodBinding.java

ViolationLine
Avoid unused private fields such as 'application'.91
These nested if statements could be combined225 - 228
These nested if statements could be combined244 - 247

org/apache/myfaces/test/mock/MockPortletContext.java

ViolationLine
An empty statement (semicolon) not part of a loop248

org/apache/myfaces/test/mock/MockResponseStateManager.java

ViolationLine
These nested if statements could be combined110 - 113
Avoid unused method parameters such as 'facesContext'.158 - 203
Avoid empty catch blocks179 - 181
Avoid empty catch blocks193 - 195
Avoid unused method parameters such as 'facesContext'.205 - 264
Avoid empty catch blocks240 - 242
Avoid empty catch blocks254 - 256

org/apache/myfaces/test/mock/MockResponseWriter.java

ViolationLine
These nested if statements could be combined409 - 421

org/apache/myfaces/test/mock/MockServletContext.java

ViolationLine
An empty statement (semicolon) not part of a loop259

org/apache/myfaces/test/mock/MockValueBinding.java

ViolationLine
These nested if statements could be combined67 - 70

org/apache/myfaces/test/mock/_AbstractAttributeMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_AbstractAttributeMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_AbstractAttributeMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_ApplicationMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_ApplicationMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_CookieMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_CookieMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_InitParameterMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_InitParameterMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_NullEnumeration.java

ViolationLine
Unnecessary final modifier in final class35 - 38

org/apache/myfaces/test/mock/_RequestHeaderMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestHeaderValuesMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_RequestMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_RequestParameterMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_RequestParameterValuesMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_RequestParameterValuesMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/_SessionMap.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/mock/_SessionMap.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/mock/lifecycle/MockLifecycle.java

ViolationLine
Avoid unused method parameters such as 'before'.177 - 186
Avoid unused method parameters such as 'phase'.177 - 186
Avoid unused method parameters such as 'before'.188 - 197
Avoid unused method parameters such as 'phase'.188 - 197

org/apache/myfaces/test/mock/lifecycle/RestoreViewExecutor.java

ViolationLine
Avoid empty if statements60 - 62
Avoid unused private methods such as 'deriveViewId(FacesContext)'.139

org/apache/myfaces/test/runners/NamedRunner.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/NamedRunner.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/runners/TestClassLoader.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/TestClassLoader.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java

ViolationLine
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /home/lu4242/workspace/test_1_0_4/myfaces-test-project-1.0.4/test12/src/main/java/org/apache/myfaces/test/runners/TestPerClassLoaderRunner.java: Can't use generics unless running in JDK 1.5 mode!0

org/apache/myfaces/test/util/JsfVersion.java

ViolationLine
Avoid empty catch blocks39 - 41
Avoid empty catch blocks43 - 45