PMD Results

The following document contains the results of PMD 4.1.

Files

org/apache/commons/workflow/base/BaseBlock.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Activity' 22
Avoid unused imports such as 'org.apache.commons.workflow.Owner' 26
An empty statement (semicolon) not part of a loop 255

org/apache/commons/workflow/base/BaseContext.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.ContextEvent' 27
An empty statement (semicolon) not part of a loop 607

org/apache/commons/workflow/base/BaseContextBean.java

Violation Line
Avoid unused private fields such as 'scopes'. 34

org/apache/commons/workflow/base/BaseRuleSet.java

Violation Line
Avoid unused imports such as 'org.apache.commons.digester.Rule' 22
Avoid unused imports such as 'org.apache.commons.digester.RuleSet' 23

org/apache/commons/workflow/base/BaseStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Activity' 20

org/apache/commons/workflow/base/DescriptorStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Activity' 21
Avoid unused imports such as 'org.apache.commons.workflow.Context' 22
Avoid unused imports such as 'org.apache.commons.workflow.Step' 25
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 26

org/apache/commons/workflow/core/BreakStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Step' 24

org/apache/commons/workflow/core/ContinueStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Step' 24

org/apache/commons/workflow/core/ExitStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20

org/apache/commons/workflow/core/GotoStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Descriptor' 21

org/apache/commons/workflow/core/IfAnyStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 26
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 27

org/apache/commons/workflow/core/IfNotAnyStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 26
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 27

org/apache/commons/workflow/core/IfNotStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 26
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 27

org/apache/commons/workflow/core/IfStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 26

org/apache/commons/workflow/core/InvokeStep.java

Violation Line
Avoid unused imports such as 'java.util.ArrayList' 22
Avoid unused imports such as 'org.apache.commons.jxpath.JXPathContext' 23

org/apache/commons/workflow/core/PopStep.java

Violation Line
Avoid unused local variables such as 'value'. 76

org/apache/commons/workflow/core/SuspendStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20

org/apache/commons/workflow/core/WhileAnyStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.Iterator' 25
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 27
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 28

org/apache/commons/workflow/core/WhileNotAnyStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.Iterator' 25
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 27
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 28

org/apache/commons/workflow/core/WhileNotStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.BlockState' 22
Avoid unused imports such as 'org.apache.commons.workflow.Iterator' 25
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 27
Avoid unused imports such as 'org.apache.commons.workflow.base.BaseBlock' 28

org/apache/commons/workflow/core/WhileStep.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.workflow.Block' 21
Avoid unused imports such as 'org.apache.commons.workflow.StepException' 27

org/apache/commons/workflow/demo/Main.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.web.WebRuleSet' 30

org/apache/commons/workflow/io/GetStep.java

Violation Line
An empty statement (semicolon) not part of a loop 211
An empty statement (semicolon) not part of a loop 217
An empty statement (semicolon) not part of a loop 223

org/apache/commons/workflow/io/ReadStep.java

Violation Line
An empty statement (semicolon) not part of a loop 179
An empty statement (semicolon) not part of a loop 185
An empty statement (semicolon) not part of a loop 191

org/apache/commons/workflow/io/WriteStep.java

Violation Line
An empty statement (semicolon) not part of a loop 190
An empty statement (semicolon) not part of a loop 196
An empty statement (semicolon) not part of a loop 202

org/apache/commons/workflow/util/ContextSupport.java

Violation Line
Avoid unused imports such as 'java.util.Map' 20

org/apache/commons/workflow/util/ScopeSupport.java

Violation Line
Avoid unused imports such as 'java.util.Map' 20

org/apache/commons/workflow/web/ActivityServlet.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.Context' 30
Avoid unused imports such as 'org.apache.commons.workflow.Step' 33
No need to import a type that lives in the same package 38
No need to import a type that lives in the same package 39
Avoid unused private fields such as 'detail'. 97
An empty statement (semicolon) not part of a loop 108
An empty statement (semicolon) not part of a loop 385

org/apache/commons/workflow/web/ForwardStep.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.util.WorkflowUtils' 29

org/apache/commons/workflow/web/GotoStep.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 20
Avoid unused imports such as 'java.util.EmptyStackException' 21
Avoid unused imports such as 'javax.servlet.RequestDispatcher' 22
Avoid unused imports such as 'javax.servlet.ServletException' 23
Avoid unused imports such as 'javax.servlet.ServletResponse' 25

org/apache/commons/workflow/web/IncludeResponse23.java

Violation Line
An empty statement (semicolon) not part of a loop 82
An empty statement (semicolon) not part of a loop 185

org/apache/commons/workflow/web/IncludeStep23.java

Violation Line
Avoid unused imports such as 'org.apache.commons.workflow.util.WorkflowUtils' 29

org/apache/commons/workflow/web/WebContext.java

Violation Line
Avoid unused imports such as 'java.util.EmptyStackException' 20
Avoid unused imports such as 'org.apache.commons.collections.ArrayStack' 25
Avoid unused imports such as 'org.apache.commons.workflow.Context' 26