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 |
|---|---|---|---|
| 19 | 124 | 0 | 0 |
Files
com.github.hazendaz.maven.yuicompressor_maven_plugin.HelpMojo
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Instance field com.github.hazendaz.maven.yuicompressor_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.yuicompressor_maven_plugin.HelpMojoTest
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method com.github.hazendaz.maven.yuicompressor_maven_plugin.HelpMojoTest.setField(Object, String, Object) uses AccessibleObject.setAccessible to modify accessibility of classes | CORRECTNESS | RFI_SET_ACCESSIBLE | 79 | Medium |
net.alchim31.maven.yuicompressor.Aggregation
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| net.alchim31.maven.yuicompressor.Aggregation.setIncludes(String[]) may expose internal representation by storing an externally mutable object into Aggregation.includes | MALICIOUS_CODE | EI_EXPOSE_REP2 | 84 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.Aggregation.run(Collection, BuildContext, Set) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 152 | Medium |
| Unwritten field: net.alchim31.maven.yuicompressor.Aggregation.excludes | CORRECTNESS | UWF_UNWRITTEN_FIELD | 307 | Medium |
net.alchim31.maven.yuicompressor.AggregationTestCase
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unconstrained method net.alchim31.maven.yuicompressor.AggregationTestCase.setField(Object, String, Object) converts checked exception to unchecked | STYLE | EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS | 557 | High |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testAutoExcludeWildcards() builds a list from one element using Arrays.asList rather than Collections.singletonList | CORRECTNESS | LUI_USE_SINGLETON_LIST | 335 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testFixLastSemicolon() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 406 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testIncrementalBuildNoDelta() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 501 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testIncrementalBuildWithDelta() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 474 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testInsertFileHeader() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 355 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testInsertFileHeaderWithNewLine() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 379 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.testRemoveIncluded() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 432 | Medium |
| Method net.alchim31.maven.yuicompressor.AggregationTestCase.setField(Object, String, Object) uses AccessibleObject.setAccessible to modify accessibility of classes | CORRECTNESS | RFI_SET_ACCESSIBLE | 554 | Medium |
| Exceptional return value of java.io.File.delete() ignored in net.alchim31.maven.yuicompressor.AggregationTestCase.test2to1() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 137 | Medium |
| Exceptional return value of java.io.File.delete() ignored in net.alchim31.maven.yuicompressor.AggregationTestCase.testAbsolutePathFromOutside() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 294 | Medium |
| Exceptional return value of java.io.File.delete() ignored in net.alchim31.maven.yuicompressor.AggregationTestCase.testAutoExcludeWildcards() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 330 | Medium |
| Exceptional return value of java.io.File.delete() ignored in net.alchim31.maven.yuicompressor.AggregationTestCase.testNoDuplicateAggregation() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 174 | Medium |
net.alchim31.maven.yuicompressor.BasicRhinoShell
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.warn(Context, Scriptable, Object[], Function) accesses list or array with constant index | CORRECTNESS | CLI_CONSTANT_LIST_INDEX | 264 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.warn(Context, Scriptable, Object[], Function) accesses list or array with constant index | CORRECTNESS | CLI_CONSTANT_LIST_INDEX | 265 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.warn(Context, Scriptable, Object[], Function) accesses list or array with constant index | CORRECTNESS | CLI_CONSTANT_LIST_INDEX | 266 | Medium |
| Unconstrained method net.alchim31.maven.yuicompressor.BasicRhinoShell.readFile(String) converts checked exception to unchecked | STYLE | EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS | 282 | High |
| Unconstrained method net.alchim31.maven.yuicompressor.BasicRhinoShell.readFile(String) converts checked exception to unchecked | STYLE | EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS | 284 | High |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.processOptions(Context, String[]) makes literal string comparisons passing the literal as an argument | STYLE | LSC_LITERAL_STRING_COMPARISON | 156 | High |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.exec(String[], ErrorReporter) creates array using constants | PERFORMANCE | SACM_STATIC_ARRAY_CREATED_IN_METHOD | 112 | Medium |
| Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance | CORRECTNESS | SLF4J_FORMAT_SHOULD_BE_CONST | 234 | High |
| Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance | CORRECTNESS | SLF4J_FORMAT_SHOULD_BE_CONST | 375 | High |
| Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance | CORRECTNESS | SLF4J_FORMAT_SHOULD_BE_CONST | 381 | High |
| Format should be constant. Use placeholder to reduce the needless cost of parameter construction. see http://www.slf4j.org/faq.html#logging_performance | CORRECTNESS | SLF4J_FORMAT_SHOULD_BE_CONST | 395 | High |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 228 | Medium |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 236 | Medium |
| To make log readable, log format ({}) should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 371 | Medium |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 376 | Medium |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 388 | Medium |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 396 | Medium |
| To make log readable, log format () should contain non-sign character. | BAD_PRACTICE | SLF4J_SIGN_ONLY_FORMAT | 400 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShell.processSource(Context, String) passes constant String of length 1 to character overridden method | PERFORMANCE | UCPM_USE_CHARACTER_PARAMETERIZED_METHOD | 360 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.load(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 328-332 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.print(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 226-237 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.print(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 226-237 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.print(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 226-237 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.version(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 305-310 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.version(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 305-310 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.warn(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 263-268 | Medium |
| Static or private method net.alchim31.maven.yuicompressor.BasicRhinoShell.warn(Context, Scriptable, Object[], Function) has unused parameters | STYLE | UP_UNUSED_PARAMETER | 263-268 | Medium |
net.alchim31.maven.yuicompressor.BasicRhinoShellTest
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.BasicRhinoShellTest.testProcessOptions_nonFlagArg_returnsRemainingArgs() accesses list or array with constant index | CORRECTNESS | CLI_CONSTANT_LIST_INDEX | 239 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShellTest.testQuitSetsFlag() declares RuntimeException in throws clause | STYLE | DRE_DECLARED_RUNTIME_EXCEPTION | 115-121 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShellTest.testQuitSetsFlag() uses AccessibleObject.setAccessible to modify accessibility of classes | CORRECTNESS | RFI_SET_ACCESSIBLE | 119 | Medium |
| Method net.alchim31.maven.yuicompressor.BasicRhinoShellTest.testProcessOptionsVersion() creates array using constants | PERFORMANCE | SACM_STATIC_ARRAY_CREATED_IN_METHOD | 84 | Medium |
| JUnit test method net.alchim31.maven.yuicompressor.BasicRhinoShellTest.testVersionGetSet() asserts that two doubles are exactly equal | STYLE | UTAO_JUNIT_ASSERTION_ODDITIES_INEXACT_DOUBLE | 256 | Medium |
net.alchim31.maven.yuicompressor.ErrorReporter4Mojo
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new net.alchim31.maven.yuicompressor.ErrorReporter4Mojo(Log, boolean, BuildContext) may expose internal representation by storing an externally mutable object into ErrorReporter4Mojo.buildContext | MALICIOUS_CODE | EI_EXPOSE_REP2 | 55 | Medium |
net.alchim31.maven.yuicompressor.JSLintChecker
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception thrown in class net.alchim31.maven.yuicompressor.JSLintChecker at new net.alchim31.maven.yuicompressor.JSLintChecker() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 34 | Medium |
net.alchim31.maven.yuicompressor.JSLintCheckerTest
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.JSLintCheckerTest.testConstructorCreatesTempFile() uses AccessibleObject.setAccessible to modify accessibility of classes | CORRECTNESS | RFI_SET_ACCESSIBLE | 76 | Medium |
| Exceptional return value of java.io.File.delete() ignored in net.alchim31.maven.yuicompressor.JSLintCheckerTest.tearDown() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 52 | Medium |
net.alchim31.maven.yuicompressor.JSLintMojo
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.JSLintMojo.processFile(SourceFile) appears to call the same method on the same object redundantly | PERFORMANCE | PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS | 41 | Medium |
net.alchim31.maven.yuicompressor.JSLintMojoTest
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.createAndConfigureMojo(File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 113 | Medium |
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.createAndConfigureMojo(File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 114 | Medium |
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.createAndConfigureMojo(File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 115 | Medium |
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.createAndConfigureMojo(File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 116 | Medium |
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.createAndConfigureMojo(File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 117 | Medium |
| Method net.alchim31.maven.yuicompressor.JSLintMojoTest.testMojoExecute_skipTrue_doesNotProcess() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 61 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.JSLintMojoTest.testMojoExecute_skipTrue_doesNotProcess() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 59 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.JSLintMojoTest.testMojoExecute_withValidJsFile_doesNotThrow() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 42 | Medium |
net.alchim31.maven.yuicompressor.MojoSupport
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.MojoSupport.processDir(File, File, List, boolean) appears to call the same method on the same object redundantly | PERFORMANCE | PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS | 250 | Medium |
net.alchim31.maven.yuicompressor.SourceFile
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| This method new net.alchim31.maven.yuicompressor.SourceFile(File, File, String, boolean) parses a String that is a field | STYLE | STT_STRING_PARSING_A_FIELD | 48 | Medium |
| This method new net.alchim31.maven.yuicompressor.SourceFile(File, File, String, boolean) parses a String that is a field | STYLE | STT_STRING_PARSING_A_FIELD | 50 | Medium |
| This method new net.alchim31.maven.yuicompressor.SourceFile(File, File, String, boolean) parses a String that is a field | STYLE | STT_STRING_PARSING_A_FIELD | 51 | Medium |
net.alchim31.maven.yuicompressor.YuiCompressorMojo
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojo.processFile(SourceFile) appears to call the same method on the same object redundantly | PERFORMANCE | PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS | 229 | Medium |
| Instance field net.alchim31.maven.yuicompressor.YuiCompressorMojo.encoding likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | Medium |
| Instance field net.alchim31.maven.yuicompressor.YuiCompressorMojo.level likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | Medium |
| Instance field net.alchim31.maven.yuicompressor.YuiCompressorMojo.linebreakpos likely could be defined as static | CORRECTNESS | SPP_FIELD_COULD_BE_STATIC | Not available | Medium |
net.alchim31.maven.yuicompressor.YuiCompressorMojoTest
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Unconstrained method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.getField(Object, String) converts checked exception to unchecked | STYLE | EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS | 757 | High |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 673 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 675 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 676 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 677 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 678 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 679 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 680 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 682 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 683 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 684 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 685 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 686 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 687 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 688 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.createAndConfigureMojo(File, File) needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 689 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testGzipIfRequested_alreadyGzipped_returnsNull() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 181 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testGzipIfRequested_fileNotExists_returnsNull() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 165 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testGzipIfRequested_gzipDisabled_returnsNull() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 133 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testGzipIfRequested_nullFile_returnsNull() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 150 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testGzipIfRequested_validFile_createsGzFile() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 199 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_disableOptimizations_producesOutput() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 645 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_forceOption_recompressesExistingOutput() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 469 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipAndStatistics_cssFile() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 587 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipAndStatistics_cssFile() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 589 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipEnabled_createsGzFile() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 404 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipEnabled_createsGzFile() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 406 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nocompress_copiesFileAsIs() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 375 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nomunge_doesNotObfuscate() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 618 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nosuffix_writesOriginalFilename() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 300 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_resourcesProcessed_whenNotExcluded() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 525 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_resourcesProcessed_whenNotExcluded() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 526 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_skipTrue_doesNotProcess() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 225 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_statisticsEnabled_doesNotThrow() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 349 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_statisticsEnabled_withCss() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 434 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_useSmallestFile_keepOriginalWhenCompressedIsLarger() needlessly boxes a boolean constant | PERFORMANCE | NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION | 496 | Medium |
| Method net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.getField(Object, String) uses AccessibleObject.setAccessible to modify accessibility of classes | CORRECTNESS | RFI_SET_ACCESSIBLE | 754 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_alreadyMinifiedFile_isSkipped() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 317 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_compressesCssFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 266 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_compressesJsFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 240 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_disableOptimizations_producesOutput() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 637 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_forceOption_recompressesExistingOutput() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 452 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipAndStatistics_cssFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 578 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_gzipEnabled_createsGzFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 395 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nocompress_copiesFileAsIs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 366 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nomunge_doesNotObfuscate() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 609 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_nosuffix_writesOriginalFilename() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 292 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_resourcesProcessed_whenNotExcluded() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 515 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_statisticsEnabled_doesNotThrow() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 341 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_statisticsEnabled_withCss() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 425 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_useSmallestFile_keepOriginalWhenCompressedIsLarger() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 487 | Medium |
| Exceptional return value of java.io.File.mkdirs() ignored in net.alchim31.maven.yuicompressor.YuiCompressorMojoTest.testMojoExecute_withLinebreakpos_jsFile() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 551 | Medium |
Build with Maven 3
GNU LGPL