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
12 108 0 0

Files

Class Bugs
com.github.hazendaz.maven.htmlcompressor_maven_plugin.HelpMojo 2
com.tunyk.mvn.plugins.htmlcompressor.FileTool 9
com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest 6
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor 4
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo 39
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest 31
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorTest 1
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor 4
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo 6
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest 6

com.github.hazendaz.maven.htmlcompressor_maven_plugin.HelpMojo

Bug Category Details Line Priority
Instance field com.github.hazendaz.maven.htmlcompressor_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.tunyk.mvn.plugins.htmlcompressor.FileTool

Bug Category Details Line Priority
Exception thrown in class com.tunyk.mvn.plugins.htmlcompressor.FileTool at new com.tunyk.mvn.plugins.htmlcompressor.FileTool(String, String[], boolean) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 58 Medium
com.tunyk.mvn.plugins.htmlcompressor.FileTool.getFileExtensions() may expose internal representation by returning FileTool.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP 215 Medium
new com.tunyk.mvn.plugins.htmlcompressor.FileTool(String, String[], boolean) may expose internal representation by storing an externally mutable object into FileTool.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 59 Medium
com.tunyk.mvn.plugins.htmlcompressor.FileTool.setFileExtensions(String[]) may expose internal representation by storing an externally mutable object into FileTool.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 225 Medium
Possible null pointer dereference in com.tunyk.mvn.plugins.htmlcompressor.FileTool.writeFiles(Map, String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 107 Medium
Possible null pointer dereference in com.tunyk.mvn.plugins.htmlcompressor.FileTool.writeToJsonFile(Map, String, String) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 142 Medium
Constructor new com.tunyk.mvn.plugins.htmlcompressor.FileTool(String, String[], boolean) makes call to non-final method CORRECTNESS PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS 58 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.FileTool.getFiles() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 82 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.FileTool.setRootDirPath(String) passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 206 Medium

com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest

Bug Category Details Line Priority
Method com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest.testExecuteNormalizesInvalidFormattingParameters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 39 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest.getField(Object, String) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 128 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest.invokeInstance(Object, String, Class[], Object[]) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 146 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest.invokeStatic(String, Class[], Object[]) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 135 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HelpMojoTest.setField(Object, String, Object) uses AccessibleObject.setAccessible to modify accessibility of classes CORRECTNESS RFI_SET_ACCESSIBLE 122 Medium
The use of DocumentBuilder.parse(...) (DocumentBuilder) is vulnerable to XML External Entity attacks SECURITY XXE_DOCUMENT 155 Medium

com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor

Bug Category Details Line Priority
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor.getFileExtensions() may expose internal representation by returning HtmlCompressor.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP 122 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor.getHtmlCompressor() may expose internal representation by returning HtmlCompressor.htmlCompressor MALICIOUS_CODE EI_EXPOSE_REP 255 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor.setFileExtensions(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressor.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 132 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressor.setHtmlCompressor(HtmlCompressor) may expose internal representation by storing an externally mutable object into HtmlCompressor.htmlCompressor MALICIOUS_CODE EI_EXPOSE_REP2 265 Medium

com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo

Bug Category Details Line Priority
Do not catch NullPointerException like in com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() STYLE DCN_NULLPOINTER_EXCEPTION 376 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getClosureExterns() may expose internal representation by returning HtmlCompressorMojo.closureExterns MALICIOUS_CODE EI_EXPOSE_REP 1221 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getFileExt() may expose internal representation by returning HtmlCompressorMojo.fileExt MALICIOUS_CODE EI_EXPOSE_REP 496 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getFileExtensions() may expose internal representation by returning HtmlCompressorMojo.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP 518 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getPredefinedPreservePatterns() may expose internal representation by returning HtmlCompressorMojo.predefinedPreservePatterns MALICIOUS_CODE EI_EXPOSE_REP 1012 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getPreservePatternFiles() may expose internal representation by returning HtmlCompressorMojo.preservePatternFiles MALICIOUS_CODE EI_EXPOSE_REP 1050 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.getPreservePatterns() may expose internal representation by returning HtmlCompressorMojo.preservePatterns MALICIOUS_CODE EI_EXPOSE_REP 1031 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setClosureExterns(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.closureExterns MALICIOUS_CODE EI_EXPOSE_REP2 1231 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setFileExt(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.fileExt MALICIOUS_CODE EI_EXPOSE_REP2 509 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setFileExtensions(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 528 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setPredefinedPreservePatterns(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.predefinedPreservePatterns MALICIOUS_CODE EI_EXPOSE_REP2 1022 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setPreservePatternFiles(File[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.preservePatternFiles MALICIOUS_CODE EI_EXPOSE_REP2 1060 Medium
com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.setPreservePatterns(String[]) may expose internal representation by storing an externally mutable object into HtmlCompressorMojo.preservePatterns MALICIOUS_CODE EI_EXPOSE_REP2 1041 Medium
The cssCompressor field in class com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo is used only as a local, but defined on class level CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL Not available Medium
The javaScriptCompressor field in class com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo is used only as a local, but defined on class level CORRECTNESS FCBL_FIELD_COULD_BE_LOCAL Not available Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 342 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 357 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 367 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 443 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 298 High
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 301 High
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 312 High
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 326 High
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() makes literal string comparisons passing the literal as an argument STYLE LSC_LITERAL_STRING_COMPARISON 329 High
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() creates Boxed primitive from primitive only to get primitive value PERFORMANCE NAB_NEEDLESS_BOX_TO_UNBOX 411 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() creates Boxed primitive from primitive only to get primitive value PERFORMANCE NAB_NEEDLESS_BOX_TO_UNBOX 412 Medium
Possible null pointer dereference in com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 440 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() does not presize the allocation of a collection PERFORMANCE PSC_PRESIZE_COLLECTIONS 307 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 419 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 420 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 421 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 422 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 423 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 425 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 427 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 429 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 430 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 434 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojo.execute() passes constant String of length 1 to character overridden method PERFORMANCE UCPM_USE_CHARACTER_PARAMETERIZED_METHOD 435 Medium

com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest

Bug Category Details Line Priority
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() excessively uses methods of another class STYLE CE_CLASS_ENVY 220-401 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteDisabled(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 122 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteWithCustomPreservePatterns(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 448 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteWithDeprecatedFileExt(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 173 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteWithInvalidPreservePatternThrows() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 470 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteWithJavascriptSpriteDisabled(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 201 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testExecuteWithPredefinedPreservePatterns(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 419 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 231 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 236 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 241 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 246 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 251 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 256 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 261 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 266 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 271 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 276 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 281 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 286 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 291 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 296 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 301 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 306 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 311 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 316 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 331 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 342 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 372 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 377 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 381 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorMojoTest.testHtmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 389 Medium

com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorTest

Bug Category Details Line Priority
Method com.tunyk.mvn.plugins.htmlcompressor.HtmlCompressorTest.testHtmlCompressorGettersSetters() excessively uses methods of another class STYLE CE_CLASS_ENVY 205-246 Medium

com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor

Bug Category Details Line Priority
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor.getFileExtensions() may expose internal representation by returning XmlCompressor.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP 82 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor.getXmlCompressor() may expose internal representation by returning XmlCompressor.xmlCompressor MALICIOUS_CODE EI_EXPOSE_REP 158 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor.setFileExtensions(String[]) may expose internal representation by storing an externally mutable object into XmlCompressor.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 92 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor.setXmlCompressor(XmlCompressor) may expose internal representation by storing an externally mutable object into XmlCompressor.xmlCompressor MALICIOUS_CODE EI_EXPOSE_REP2 168 Medium

com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo

Bug Category Details Line Priority
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.getFileExt() may expose internal representation by returning XmlCompressorMojo.fileExt MALICIOUS_CODE EI_EXPOSE_REP 135 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.getFileExtensions() may expose internal representation by returning XmlCompressorMojo.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP 157 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.setFileExt(String[]) may expose internal representation by storing an externally mutable object into XmlCompressorMojo.fileExt MALICIOUS_CODE EI_EXPOSE_REP2 148 Medium
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.setFileExtensions(String[]) may expose internal representation by storing an externally mutable object into XmlCompressorMojo.fileExtensions MALICIOUS_CODE EI_EXPOSE_REP2 167 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.execute() throws alternative exception from catch block without history CORRECTNESS LEST_LOST_EXCEPTION_STACK_TRACE 101 Medium
Instance field com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojo.encoding likely could be defined as static CORRECTNESS SPP_FIELD_COULD_BE_STATIC Not available Medium

com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest

Bug Category Details Line Priority
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testXmlMojoGettersSetters() excessively uses methods of another class STYLE CE_CLASS_ENVY 195-236 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testExecuteDisabled(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 121 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testExecuteWithCommentsRetained(Path) needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 254 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testXmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 206 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testXmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 211 Medium
Method com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest.testXmlMojoGettersSetters() needlessly boxes a boolean constant PERFORMANCE NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION 216 Medium