SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
4 23 0 0

Files

Class Bugs
com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojo 2
com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest 4
net.jangaroo.smartsprites.maven.SmartSpritesMojo 15
net.jangaroo.smartsprites.maven.SmartSpritesMojoTest 2

com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojo

Bug Category Details Line Priority
Instance field com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojo.goal likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
The use of DocumentBuilder.parse(...) (DocumentBuilder) is vulnerable to XML External Entity attacks SECURITY XXE_DOCUMENT 77 Medium

com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest

Bug Category Details Line Priority
Method com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest.invoke(Method, Object, Object[]) throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 164 Medium
Method com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest.testExecuteWithDetailAndGoal() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 50 Medium
Method com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest.method(String, Class[]) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 140 Medium
Method com.github.hazendaz.maven.smartsprites_maven_plugin.HelpMojoTest.setField(Object, String, Object) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 185 Medium

net.jangaroo.smartsprites.maven.SmartSpritesMojo

Bug Category Details Line Priority
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 187 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 188 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 189 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 202 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 215 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 224 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 235 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 240 High
Method net.jangaroo.smartsprites.maven.SmartSpritesMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 246 High
Instance field net.jangaroo.smartsprites.maven.SmartSpritesMojo.cssFileEncoding likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field net.jangaroo.smartsprites.maven.SmartSpritesMojo.cssFileSuffix likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field net.jangaroo.smartsprites.maven.SmartSpritesMojo.logLevel likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field net.jangaroo.smartsprites.maven.SmartSpritesMojo.spritePngDepth likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Instance field net.jangaroo.smartsprites.maven.SmartSpritesMojo.workingMode likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium
Field only ever set to null: net.jangaroo.smartsprites.maven.SmartSpritesMojo.cssFiles CORRECTNESS UWF_NULL_FIELD 203 Medium

net.jangaroo.smartsprites.maven.SmartSpritesMojoTest

Bug Category Details Line Priority
Hard coded reference to an absolute pathname in net.jangaroo.smartsprites.maven.SmartSpritesMojoTest.testCssFilesModeWithMissingCssFileThrowsException(SmartSpritesMojo) STYLE DMI_HARDCODED_ABSOLUTE_FILENAME 150 Medium
Hard coded reference to an absolute pathname in net.jangaroo.smartsprites.maven.SmartSpritesMojoTest.testRootDirPathDoesNotExistThrowsException(SmartSpritesMojo) STYLE DMI_HARDCODED_ABSOLUTE_FILENAME 96 Medium