PMD Results

The following document contains the results of PMD 4.1.

Files

Apache JAMES MPT AntLib - org/apache/james/mpt/ant/MailProtocolTestTask.java

ViolationLine
Error while parsing /opt/development/apache/apache-james-mpt-0.1/antlib/src/main/java/org/apache/james/mpt/ant/MailProtocolTestTask.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /opt/development/apache/apache-james-mpt-0.1/antlib/src/main/java/org/apache/james/mpt/ant/MailProtocolTestTask.java: Can't use generics unless running in JDK 1.5 mode!0

Apache JAMES MPT Application - org/apache/james/mpt/app/Main.java

ViolationLine
Error while parsing /opt/development/apache/apache-james-mpt-0.1/app/src/main/java/org/apache/james/mpt/app/Main.java: Can't use annotations when running in JDK 1.4 mode!0
Error while parsing /opt/development/apache/apache-james-mpt-0.1/app/src/main/java/org/apache/james/mpt/app/Main.java: Can't use annotations when running in JDK 1.4 mode!0

Apache JAMES MPT Application - org/apache/james/mpt/app/RunScript.java

ViolationLine
Found 'UR'-anomaly for variable 'host' (lines '53'-'54').53 - 54
Avoid using final local variables, turn them into fields56
Avoid using final local variables, turn them into fields57
Avoid using final local variables, turn them into fields58

Apache JAMES MPT Main - org/apache/james/mpt/AbstractProtocolTestFramework.java

ViolationLine
It is a good practice to call super() in a constructor42 - 47

Apache JAMES MPT Main - org/apache/james/mpt/ExternalSession.java

ViolationLine
Avoid using final local variables, turn them into fields64
Avoid empty while statements81
Avoid using final local variables, turn them into fields88
Avoid using final local variables, turn them into fields156

Apache JAMES MPT Main - org/apache/james/mpt/ExternalSessionFactory.java

ViolationLine
Avoid using final local variables, turn them into fields46
Avoid using final local variables, turn them into fields48
Avoid using final local variables, turn them into fields65

Apache JAMES MPT Main - org/apache/james/mpt/HostSystem.java

ViolationLine
Avoid modifiers which are implied by the context41
Avoid modifiers which are implied by the context52
Avoid modifiers which are implied by the context54 - 56
Avoid modifiers which are implied by the context55

Apache JAMES MPT Main - org/apache/james/mpt/ProtocolInteractor.java

ViolationLine
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolInteractor.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolInteractor.java: Can't use generics unless running in JDK 1.5 mode!0

Apache JAMES MPT Main - org/apache/james/mpt/ProtocolSession.java

ViolationLine
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolSession.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolSession.java: Can't use generics unless running in JDK 1.5 mode!0

Apache JAMES MPT Main - org/apache/james/mpt/ProtocolSessionBuilder.java

ViolationLine
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolSessionBuilder.java: Can't use generics unless running in JDK 1.5 mode!0
Error while parsing /opt/development/apache/apache-james-mpt-0.1/main/src/main/java/org/apache/james/mpt/ProtocolSessionBuilder.java: Can't use generics unless running in JDK 1.5 mode!0

Apache JAMES MPT Main - org/apache/james/mpt/Runner.java

ViolationLine
Found 'UR'-anomaly for variable 'session' (lines '76'-'82').76 - 82
Found 'UR'-anomaly for variable 'session' (lines '76'-'82').76 - 82
Avoid using final local variables, turn them into fields120

Apache JAMES MPT Main - org/apache/james/mpt/ScriptedUserAdder.java

ViolationLine
Avoid using final local variables, turn them into fields81
Avoid using final local variables, turn them into fields93
Avoid using final local variables, turn them into fields97
Avoid using final local variables, turn them into fields99
Avoid using final local variables, turn them into fields112

Apache JAMES MPT Main - org/apache/james/mpt/Session.java

ViolationLine
Avoid modifiers which are implied by the context33
Avoid modifiers which are implied by the context40
Avoid modifiers which are implied by the context47
Avoid modifiers which are implied by the context54

Apache JAMES MPT Main - org/apache/james/mpt/SessionFactory.java

ViolationLine
Avoid modifiers which are implied by the context35 - 36

Apache JAMES MPT Main - org/apache/james/mpt/UserAdder.java

ViolationLine
Avoid modifiers which are implied by the context33