PMD Results
The following document contains the results of PMD 4.2.5.
Files
org/apache/myfaces/test/base/junit4/AbstractJsfConfigurableMockTestCase.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'fcontext'. | 100 |
org/apache/myfaces/test/el/FacesPropertyResolverChainWrapper.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'value'. | 83 |
org/apache/myfaces/test/el/FacesScopedAttributeELResolver.java
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'map'. | 80 |
| Avoid unused local variables such as 'result'. | 243 |
org/apache/myfaces/test/el/FacesVariableResolverChainWrapper.java
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'econtext'. | 113 |
| Avoid unused local variables such as 'elContext'. | 116 |
org/apache/myfaces/test/el/MockCompositeValueExpression.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'lifecycle'. | 110 |
org/apache/myfaces/test/mock/MockHttpServletRequest.java
| Violation | Line |
|---|---|
| Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! | 755 |
org/apache/myfaces/test/mock/MockHttpServletResponse.java
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'contentLength'. | 139 |
org/apache/myfaces/test/mock/MockMethodBinding.java
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'application'. | 91 |
| These nested if statements could be combined | 225 - 228 |
| These nested if statements could be combined | 244 - 247 |
org/apache/myfaces/test/mock/MockPortletContext.java
| Violation | Line |
|---|---|
| An empty statement (semicolon) not part of a loop | 248 |
org/apache/myfaces/test/mock/MockResponseStateManager.java
| Violation | Line |
|---|---|
| These nested if statements could be combined | 110 - 113 |
| Avoid unused method parameters such as 'facesContext'. | 158 - 203 |
| Avoid empty catch blocks | 179 - 181 |
| Avoid empty catch blocks | 193 - 195 |
| Avoid unused method parameters such as 'facesContext'. | 205 - 264 |
| Avoid empty catch blocks | 240 - 242 |
| Avoid empty catch blocks | 254 - 256 |
org/apache/myfaces/test/mock/MockResponseWriter.java
| Violation | Line |
|---|---|
| These nested if statements could be combined | 409 - 421 |
org/apache/myfaces/test/mock/MockServletContext.java
| Violation | Line |
|---|---|
| An empty statement (semicolon) not part of a loop | 259 |
org/apache/myfaces/test/mock/MockValueBinding.java
| Violation | Line |
|---|---|
| These nested if statements could be combined | 67 - 70 |
org/apache/myfaces/test/mock/_AbstractAttributeMap.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| Unnecessary final modifier in final class | 35 - 38 |
org/apache/myfaces/test/mock/_RequestHeaderMap.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| Avoid empty if statements | 60 - 62 |
| Avoid unused private methods such as 'deriveViewId(FacesContext)'. | 139 |
org/apache/myfaces/test/runners/NamedRunner.java
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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
| Violation | Line |
|---|---|
| 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 |