PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/BaseCompiler.java

Rule Violation Line
ImmutableField Private field 'sourceCharset' could be made final; it is only initialized in the declaration or constructor. 64

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/listener/CompilerListener.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 99–100

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/resources/writer/FileResourceWriter.java

Rule Violation Line
ImmutableField Private field 'baseDir' could be made final; it is only initialized in the declaration or constructor. 18

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/util/ByteArrayOutputStreamWithCallback.java

Rule Violation Line
ImmutableField Private field 'callback' could be made final; it is only initialized in the declaration or constructor. 15

Priority 4

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/exception/CompileException.java

Rule Violation Line
UselessParentheses Useless parentheses. 25

Files

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/BaseCompiler.java

Rule Violation Priority Line
ImmutableField Private field 'sourceCharset' could be made final; it is only initialized in the declaration or constructor. 3 64

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/exception/CompileException.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 25

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/listener/CompilerListener.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 99–100

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/resources/writer/FileResourceWriter.java

Rule Violation Priority Line
ImmutableField Private field 'baseDir' could be made final; it is only initialized in the declaration or constructor. 3 18

runtime-compiler-lib - com/github/hypfvieh/java/rtcompiler/util/ByteArrayOutputStreamWithCallback.java

Rule Violation Priority Line
ImmutableField Private field 'callback' could be made final; it is only initialized in the declaration or constructor. 3 15

Suppressed Violations

Filename Rule message Suppression type Reason
com/github/hypfvieh/java/maven/plugin/rtcompiler/ExecuteRtCompilerMojo.java Private field 'failOnError' could be made final; it is only initialized in the declaration or constructor. annotation