The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 435 | 62 | 0 | 0 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.air.SignAirMojo.listAllResources() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 269 |
| Method org.sonatype.flexmojos.air.SignAirMojo.listAllResources() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 270 |
| Possible null pointer dereference of output in org.sonatype.flexmojos.air.SignAirMojo.getAirDescriptor() | CORRECTNESS | NP_NULL_ON_SOME_PATH | 249 |
| org.sonatype.flexmojos.air.SignAirMojo.execute() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 112 |
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.air.SignAirMojo.execute() | STYLE | REC_CATCH_EXCEPTION | 213 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.asdoc.AsDocMojo.makeHelperExecutable(File) | STYLE | REC_CATCH_EXCEPTION | 459 |
| Usage of GetResource in org.sonatype.flexmojos.asdoc.AsDocMojo.setUp() may be unsafe if class is extended | BAD_PRACTICE | UI_INHERITANCE_UNSAFE_GETRESOURCE | 370 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.asdoc.AsDocReport.generate(Sink, Locale) | STYLE | REC_CATCH_EXCEPTION | 117 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Field AttachAsdocMojo.projectHelper masks field in superclass org.sonatype.flexmojos.asdoc.AsDocMojo | CORRECTNESS | MF_CLASS_MASKS_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Field DitaAsdocMojo.outputDirectory masks field in superclass org.sonatype.flexmojos.asdoc.AsDocMojo | CORRECTNESS | MF_CLASS_MASKS_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Hard coded reference to an absolute pathname in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.<static initializer>() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 94 |
| Hard coded reference to an absolute pathname in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.<static initializer>() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 90 |
| Hard coded reference to an absolute pathname in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.<static initializer>() | STYLE | DMI_HARDCODED_ABSOLUTE_FILENAME | 92 |
| Invocation of toString on an array in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.getResourcesBundles(String[]) | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 2096 |
| Method org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.getThemes() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 1651 |
| org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.DEFAULT_RSL_URLS is a mutable array | MALICIOUS_CODE | MS_MUTABLE_ARRAY | 80 |
| org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.getLicenses() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 1244 |
| Should org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.getDependenciesPath(String[]) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 2111 |
| Should org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.getThemes() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 1648 |
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.writeReport(Report, String) | STYLE | REC_CATCH_EXCEPTION | 2372 |
| org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.build(Builder, boolean) ignores return value of java.io.File.createNewFile() | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 2434 |
| Usage of GetResource in org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.writeResourceBundle(Report) may be unsafe if class is extended | BAD_PRACTICE | UI_INHERITANCE_UNSAFE_GETRESOURCE | 2184 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.compiler.ApplicationMojo.writeResourceBundleFlex32(String[], String, File) | STYLE | REC_CATCH_EXCEPTION | 406 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.compiler.Font.getManagers() may expose internal representation by returning Font.managers | MALICIOUS_CODE | EI_EXPOSE_REP | 94 |
| org.sonatype.flexmojos.compiler.Font.setManagers(String[]) may expose internal representation by storing an externally mutable object into Font.managers | MALICIOUS_CODE | EI_EXPOSE_REP2 | 99 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.compiler.FrameLabel.getClassNames() may expose internal representation by returning FrameLabel.classNames | MALICIOUS_CODE | EI_EXPOSE_REP | 29 |
| org.sonatype.flexmojos.compiler.FrameLabel.setClassNames(String[]) may expose internal representation by storing an externally mutable object into FrameLabel.classNames | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.compiler.LibraryMojo.setUp() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 215 |
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.compiler.LibraryMojo.writeResourceBundle(String[], String, File) | STYLE | REC_CATCH_EXCEPTION | 451 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.compiler.Metadata.getContributors() may expose internal representation by returning Metadata.contributors | MALICIOUS_CODE | EI_EXPOSE_REP | 78 |
| org.sonatype.flexmojos.compiler.Metadata.getCreators() may expose internal representation by returning Metadata.creators | MALICIOUS_CODE | EI_EXPOSE_REP | 88 |
| org.sonatype.flexmojos.compiler.Metadata.getDate() may expose internal representation by returning Metadata.date | MALICIOUS_CODE | EI_EXPOSE_REP | 98 |
| org.sonatype.flexmojos.compiler.Metadata.getLanguages() may expose internal representation by returning Metadata.languages | MALICIOUS_CODE | EI_EXPOSE_REP | 132 |
| org.sonatype.flexmojos.compiler.Metadata.getPublishers() may expose internal representation by returning Metadata.publishers | MALICIOUS_CODE | EI_EXPOSE_REP | 142 |
| org.sonatype.flexmojos.compiler.Metadata.setContributors(String[]) may expose internal representation by storing an externally mutable object into Metadata.contributors | MALICIOUS_CODE | EI_EXPOSE_REP2 | 83 |
| org.sonatype.flexmojos.compiler.Metadata.setCreators(String[]) may expose internal representation by storing an externally mutable object into Metadata.creators | MALICIOUS_CODE | EI_EXPOSE_REP2 | 93 |
| org.sonatype.flexmojos.compiler.Metadata.setDate(Date) may expose internal representation by storing an externally mutable object into Metadata.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 103 |
| org.sonatype.flexmojos.compiler.Metadata.setLanguages(String[]) may expose internal representation by storing an externally mutable object into Metadata.languages | MALICIOUS_CODE | EI_EXPOSE_REP2 | 137 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.compiler.TestCompilerMojo.configure() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 278 |
| Method org.sonatype.flexmojos.compiler.TestCompilerMojo.merge(File[][]) uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 410 |
| Usage of GetResource in org.sonatype.flexmojos.compiler.TestCompilerMojo.getTemplate() may be unsafe if class is extended | BAD_PRACTICE | UI_INHERITANCE_UNSAFE_GETRESOURCE | 247 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.compiler.TestLibraryCompilerMojo.configure() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 74 |
| Method org.sonatype.flexmojos.compiler.TestLibraryCompilerMojo.setUp() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 60 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.flexbuilder.AbstractIdeMojo.setupExtras() invokes java.lang.reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block | BAD_PRACTICE | DP_DO_INSIDE_DO_PRIVILEGED | 186 |
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.flexbuilder.AbstractIdeMojo.setupExtras() | STYLE | REC_CATCH_EXCEPTION | 193 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to art in org.sonatype.flexmojos.flexbuilder.FlexbuilderMojo.getDependencies(IdeDependency[]) | STYLE | DLS_DEAD_LOCAL_STORE | 389 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Private method org.sonatype.flexmojos.flexcover.FlexCoverReportMojo.getCompileSourceRoots() is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 266 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.generator.GeneratorMojo.initializeClassLoader() uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 392 |
| org.sonatype.flexmojos.generator.GeneratorMojo.getFilesToGenerator() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 319 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.htmlwrapper.HtmlWrapperMojo.extractTemplate() | STYLE | REC_CATCH_EXCEPTION | 508 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.manifest.ManifestMojo.addDefaultIncludes(String[]) uses Collection.toArray() with zero-length array argument | PERFORMANCE | ITA_INEFFICIENT_TO_ARRAY | 117 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.optimizer.OptimizerMojo.optimize(InputStream, OutputStream) | STYLE | REC_CATCH_EXCEPTION | 199 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.source.SourceViewMojo.execute() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | 61 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.sonatype.flexmojos.test.FlexUnitMojo.tearDown() invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 295 |
| Method org.sonatype.flexmojos.test.FlexUnitMojo.tearDown() invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 296 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.truster.DefaultFlashPlayerTruster.updateSecuritySandbox(File) may fail to close stream on exception | BAD_PRACTICE | OS_OPEN_STREAM_EXCEPTION_PATH | 45 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should org.sonatype.flexmojos.utilities.CompileConfigurationLoader.getCompilerPluginSettings(MavenProject, String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 100 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.sonatype.flexmojos.utilities.FDKConfigResolver.getFontManagers() may expose internal representation by returning FDKConfigResolver.fontManagers | MALICIOUS_CODE | EI_EXPOSE_REP | 142 |
| Should org.sonatype.flexmojos.utilities.FDKConfigResolver.getFontManagers() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 115 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Use of non-localized String.toUpperCase() or String.toLowerCase | I18N | DM_CONVERT_CASE | 318 |
| Should org.sonatype.flexmojos.utilities.MavenUtils.getFiles(Collection) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 470 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Exception is caught when Exception is not thrown in org.sonatype.flexmojos.utilities.SourceFileResolver.isApplicationFile(File) | STYLE | REC_CATCH_EXCEPTION | 208 |