FindBugs Bug Detector Report
The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is medium
Effort is min
Summary
Classes | Bugs | Errors | Missing Classes |
---|
161 | 31 | 0 | 0 |
org.apache.maven.index.ArtifactContext
Bug | Category | Details | Line | Priority |
---|
Method org.apache.maven.index.ArtifactContext.getPomModel() may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 96 | Medium |
org.apache.maven.index.ArtifactInfo$ContextVersionComparator
org.apache.maven.index.ArtifactInfo$RepositoryVersionComparator
org.apache.maven.index.ArtifactInfo$VersionComparator
org.apache.maven.index.DefaultIteratorResultSet
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.index.DefaultIteratorResultSet.finalize() est public ; il devrait être protégé | MALICIOUS_CODE | FI_PUBLIC_SHOULD_BE_PROTECTED | 184-193 | Medium |
org.apache.maven.index.DefaultNexusIndexer
Bug | Category | Details | Line | Priority |
---|
Alimentation à perte d'une variable locale dans la méthode org.apache.maven.index.DefaultNexusIndexer.scan(IndexingContext, String, ArtifactScanningListener, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 289 | Medium |
org.apache.maven.index.DefaultNexusIndexer.scan(IndexingContext, String, ArtifactScanningListener, boolean) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 339 | Medium |
org.apache.maven.index.DefaultScanner$ScannerFileComparator
org.apache.maven.index.cli.NexusIndexerCli
Bug | Category | Details | Line | Priority |
---|
Format-string method java.io.PrintStream.printf(String, Object[]) called with format string "Cannot zip index;
" wants 0 arguments but is given 1 in org.apache.maven.index.cli.NexusIndexerCli.packIndex(IndexPacker, IndexPackingRequest, boolean, boolean) | CORRECTNESS | VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED | 500 | High |
org.apache.maven.index.cli.NexusIndexerCli$1
org.apache.maven.index.context.DefaultIndexingContext
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.index.context.DefaultIndexingContext.getTimestamp() risque d'exposer sa représentation interne en renvoyant org.apache.maven.index.context.DefaultIndexingContext.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP | 428 | Medium |
La méthode org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(boolean, Date) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.index.context.DefaultIndexingContext.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP2 | 418 | Medium |
org.apache.maven.index.context.DefaultIndexingContext.BLOCKING_COMMIT n'est pas final et n'est pas protégé face à du code malveillant | MALICIOUS_CODE | MS_CANNOT_BE_FINAL | 1210 | Medium |
org.apache.maven.index.incremental.DefaultIncrementalHandler
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.index.incremental.DefaultIncrementalHandler.cleanUpIncrementalChunks(IndexPackingRequest, Properties) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 256 | Medium |
org.apache.maven.index.locator.ArtifactLocator
Bug | Category | Details | Line | Priority |
---|
Method org.apache.maven.index.locator.ArtifactLocator.locate(File, GavCalculator, Gav) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 59 | Medium |
org.apache.maven.index.packer.DefaultIndexPacker
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.index.packer.DefaultIndexPacker.packIndexArchive(IndexingContext, OutputStream) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 299 | Medium |
org.apache.maven.index.packer.DefaultIndexPacker.packIndexArchive(IndexingContext, OutputStream) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 283 | Medium |
org.apache.maven.index.packer.DefaultIndexPacker.writeIndexArchive(IndexingContext, File) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 256 | Medium |
org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(IndexingContext, List, File) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 430 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(IndexUpdateRequest) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 132 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(IndexUpdateRequest, ResourceFetcher, boolean, String) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 182 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(IndexUpdateRequest, ResourceFetcher, boolean, String) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 183 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater.storeIndexProperties(File, String, Properties) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 452 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexArchive(InputStream, Directory, IndexingContext) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 282 | Medium |
org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexArchive(InputStream, Directory, IndexingContext) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 266 | Medium |
org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.getTimestamp() risque d'exposer sa représentation interne en renvoyant org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP | 293 | Medium |
La méthode org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.setTimestamp(Date) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP2 | 288 | Medium |
org.apache.maven.index.updater.IndexUpdateResult
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.index.updater.IndexUpdateResult.getTimestamp() risque d'exposer sa représentation interne en renvoyant org.apache.maven.index.updater.IndexUpdateResult.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP | 32 | Medium |
La méthode org.apache.maven.index.updater.IndexUpdateResult.setTimestamp(Date) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.index.updater.IndexUpdateResult.timestamp | MALICIOUS_CODE | EI_EXPOSE_REP2 | 37 | Medium |
org.apache.maven.index.updater.WagonHelper$WagonFetcher$1
Bug | Category | Details | Line | Priority |
---|
Method new org.apache.maven.index.updater.WagonHelper$WagonFetcher$1(WagonHelper$WagonFetcher, File, File) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 203 | Medium |
org.apache.maven.index.updater.WagonHelper$WagonFetcher$1.close() ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 209 | Medium |