FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
1633700

org.apache.maven.index.ArtifactContext

BugCategoryDetailsLinePriority
org.apache.maven.index.ArtifactContext.getPomModel() may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION96Medium

org.apache.maven.index.ArtifactContext$ModelReader

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.index.ArtifactContext$ModelReader.readPomInputStream(InputStream): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING244High

org.apache.maven.index.ArtifactInfo

BugCategoryDetailsLinePriority
Class org.apache.maven.index.ArtifactInfo defines non-transient non-serializable instance field fieldsBAD_PRACTICESE_BAD_FIELDNot availableHigh
Class org.apache.maven.index.ArtifactInfo defines non-transient non-serializable instance field matchHighlightsBAD_PRACTICESE_BAD_FIELDNot availableHigh

org.apache.maven.index.ArtifactInfo$ContextVersionComparator

BugCategoryDetailsLinePriority
org.apache.maven.index.ArtifactInfo$ContextVersionComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE647-667Medium

org.apache.maven.index.ArtifactInfo$RepositoryVersionComparator

BugCategoryDetailsLinePriority
org.apache.maven.index.ArtifactInfo$RepositoryVersionComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE619-639Medium

org.apache.maven.index.ArtifactInfo$VersionComparator

BugCategoryDetailsLinePriority
org.apache.maven.index.ArtifactInfo$VersionComparator.compare(ArtifactInfo, ArtifactInfo) negates the return value of org.sonatype.aether.version.Version.compareTo(Object)BAD_PRACTICERV_NEGATING_RESULT_OF_COMPARETO570Medium
org.apache.maven.index.ArtifactInfo$VersionComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE553-610Medium

org.apache.maven.index.DefaultIteratorResultSet

BugCategoryDetailsLinePriority
org.apache.maven.index.DefaultIteratorResultSet.finalize() is public; should be protectedMALICIOUS_CODEFI_PUBLIC_SHOULD_BE_PROTECTED196-205Medium

org.apache.maven.index.DefaultNexusIndexer

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.DefaultNexusIndexer.scan(IndexingContext, String, ArtifactScanningListener, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE309Medium

org.apache.maven.index.DefaultScanner$ScannerFileComparator

BugCategoryDetailsLinePriority
org.apache.maven.index.DefaultScanner$ScannerFileComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLE119-139Medium

org.apache.maven.index.context.DefaultIndexingContext

BugCategoryDetailsLinePriority
org.apache.maven.index.context.DefaultIndexingContext.getTimestamp() may expose internal representation by returning DefaultIndexingContext.timestampMALICIOUS_CODEEI_EXPOSE_REP407Medium
org.apache.maven.index.context.DefaultIndexingContext.updateTimestamp(boolean, Date) may expose internal representation by storing an externally mutable object into DefaultIndexingContext.timestampMALICIOUS_CODEEI_EXPOSE_REP2397Medium
org.apache.maven.index.context.DefaultIndexingContext.getAllGroups() is unsynchronized, org.apache.maven.index.context.DefaultIndexingContext.setAllGroups(Collection) is synchronizedMT_CORRECTNESSUG_SYNC_SET_UNSYNC_GET736Medium
org.apache.maven.index.context.DefaultIndexingContext.getRootGroups() is unsynchronized, org.apache.maven.index.context.DefaultIndexingContext.setRootGroups(Collection) is synchronizedMT_CORRECTNESSUG_SYNC_SET_UNSYNC_GET749Medium

org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.index.creator.MavenPluginArtifactInfoIndexCreator.checkMavenPlugin(ArtifactInfo, File): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING106High

org.apache.maven.index.incremental.DefaultIncrementalHandler

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.incremental.DefaultIncrementalHandler.cleanUpIncrementalChunks(IndexPackingRequest, Properties)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE263Medium

org.apache.maven.index.locator.ArtifactLocator

BugCategoryDetailsLinePriority
org.apache.maven.index.locator.ArtifactLocator.locate(File, GavCalculator, Gav) may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION59Medium

org.apache.maven.index.packer.DefaultIndexPacker

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.packer.DefaultIndexPacker.packIndexArchive(IndexingContext, OutputStream)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE295Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.index.packer.DefaultIndexPacker.packIndexArchive(IndexingContext, OutputStream)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE271Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.packer.DefaultIndexPacker.writeIndexArchive(IndexingContext, File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE244Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.packer.DefaultIndexPacker.writeIndexData(IndexingContext, List, File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE426Medium

org.apache.maven.index.updater.DefaultIndexUpdater

BugCategoryDetailsLinePriority
Redundant nullcheck of localTimestamp, which is known to be non-null in org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(IndexUpdateRequest, ResourceFetcher, DefaultIndexUpdater$IndexAdaptor)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE848Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(IndexUpdateRequest)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE132Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(IndexUpdateRequest, ResourceFetcher, boolean, String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE182Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(IndexUpdateRequest, ResourceFetcher, boolean, String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE183Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.storeIndexProperties(File, String, Properties)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE452Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexArchive(InputStream, Directory, IndexingContext)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE282Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexArchive(InputStream, Directory, IndexingContext)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE266Medium

org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult

BugCategoryDetailsLinePriority
org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.getTimestamp() may expose internal representation by returning IndexDataReader$IndexDataReadResult.timestampMALICIOUS_CODEEI_EXPOSE_REP293Medium
org.apache.maven.index.updater.IndexDataReader$IndexDataReadResult.setTimestamp(Date) may expose internal representation by storing an externally mutable object into IndexDataReader$IndexDataReadResult.timestampMALICIOUS_CODEEI_EXPOSE_REP2288Medium

org.apache.maven.index.updater.IndexUpdateResult

BugCategoryDetailsLinePriority
org.apache.maven.index.updater.IndexUpdateResult.getTimestamp() may expose internal representation by returning IndexUpdateResult.timestampMALICIOUS_CODEEI_EXPOSE_REP32Medium
org.apache.maven.index.updater.IndexUpdateResult.setTimestamp(Date) may expose internal representation by storing an externally mutable object into IndexUpdateResult.timestampMALICIOUS_CODEEI_EXPOSE_REP237Medium

org.apache.maven.index.updater.WagonHelper$WagonFetcher$1

BugCategoryDetailsLinePriority
new org.apache.maven.index.updater.WagonHelper$WagonFetcher$1(WagonHelper$WagonFetcher, File, File) may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION203Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.index.updater.WagonHelper$WagonFetcher$1.close()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE209Medium

org.apache.maven.index.util.zip.TrueZipZipFileHandle

BugCategoryDetailsLinePriority
Redundant nullcheck of entry, which is known to be non-null in org.apache.maven.index.util.zip.TrueZipZipFileHandle.getEntryContent(String)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE96Medium
Redundant nullcheck of de.schlichtherle.truezip.zip.ZipFile.getEntry(String), which is known to be non-null in org.apache.maven.index.util.zip.TrueZipZipFileHandle.hasEntry(String)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE54Medium