The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

io/wcm/devops/conga/tooling/maven/plugin/DefinitionPackageMojo.java

Rule Violation Line
ImmutableField Private field 'archive' could be made final; it is only initialized in the declaration or constructor. 76
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 148
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 155
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 157

io/wcm/devops/conga/tooling/maven/plugin/PackageMojo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'mavenSession'. 74
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 107
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 192
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 194

io/wcm/devops/conga/tooling/maven/plugin/util/ClassLoaderUtil.java

Rule Violation Line
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 56

io/wcm/devops/conga/tooling/maven/plugin/util/MavenArtifactHelper.java

Rule Violation Line
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 108
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 173
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 222
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 269
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 277
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 289
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 296
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 308

io/wcm/devops/conga/tooling/maven/plugin/validation/ModelValidator.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 50
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 51

io/wcm/devops/conga/tooling/maven/plugin/validation/NoValueProviderInRoleValidator.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 47
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 48

io/wcm/devops/conga/tooling/maven/plugin/validation/RoleTemplateFileValidator.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 67
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 68

io/wcm/devops/conga/tooling/maven/plugin/validation/TemplateValidator.java

Rule Violation Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 63
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 64

Files

io/wcm/devops/conga/tooling/maven/plugin/DefinitionPackageMojo.java

Rule Violation Priority Line
ImmutableField Private field 'archive' could be made final; it is only initialized in the declaration or constructor. 3 76
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 148
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 155
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 157

io/wcm/devops/conga/tooling/maven/plugin/PackageMojo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'mavenSession'. 3 74
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 107
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 192
AppendCharacterWithChar Avoid appending characters as strings in StringBuffer.append. 3 194

io/wcm/devops/conga/tooling/maven/plugin/util/ClassLoaderUtil.java

Rule Violation Priority Line
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 56

io/wcm/devops/conga/tooling/maven/plugin/util/MavenArtifactHelper.java

Rule Violation Priority Line
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 108
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 173
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 222
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 269
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 277
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 289
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 296
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 308

io/wcm/devops/conga/tooling/maven/plugin/validation/ModelValidator.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 50
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 51

io/wcm/devops/conga/tooling/maven/plugin/validation/NoValueProviderInRoleValidator.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 47
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 48

io/wcm/devops/conga/tooling/maven/plugin/validation/RoleTemplateFileValidator.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 67
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 68

io/wcm/devops/conga/tooling/maven/plugin/validation/TemplateValidator.java

Rule Violation Priority Line
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 63
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 64

Back to top

Version: 1.11.3-SNAPSHOT. Last Published: 2019-09-18.