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
1594400

org.apache.maven.artifact.manager.DefaultWagonManager

BugCategoryDetailsLinePriority
The class name org.apache.maven.artifact.manager.DefaultWagonManager shadows the simple name of the superclass org.apache.maven.repository.legacy.DefaultWagonManagerBAD_PRACTICENM_SAME_SIMPLE_NAME_AS_SUPERCLASS46-179High

org.apache.maven.artifact.manager.WagonConfigurationException

BugCategoryDetailsLinePriority
The class name org.apache.maven.artifact.manager.WagonConfigurationException shadows the simple name of the superclass org.apache.maven.repository.legacy.WagonConfigurationExceptionBAD_PRACTICENM_SAME_SIMPLE_NAME_AS_SUPERCLASS31-37High

org.apache.maven.artifact.manager.WagonManager

BugCategoryDetailsLinePriority
The class name org.apache.maven.artifact.manager.WagonManager shadows the simple name of implemented interface org.apache.maven.repository.legacy.WagonManagerBAD_PRACTICENM_SAME_SIMPLE_NAME_AS_INTERFACENot availableMedium

org.apache.maven.artifact.repository.DefaultArtifactRepository

BugCategoryDetailsLinePriority
org.apache.maven.artifact.repository.DefaultArtifactRepository doesn't override org.apache.maven.wagon.repository.Repository.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALS269-293Medium
Class org.apache.maven.artifact.repository.DefaultArtifactRepository defines non-transient non-serializable instance field authenticationBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class org.apache.maven.artifact.repository.DefaultArtifactRepository defines non-transient non-serializable instance field proxyBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class org.apache.maven.artifact.repository.DefaultArtifactRepository defines non-transient non-serializable instance field releasesBAD_PRACTICESE_BAD_FIELDNot availableMedium
Class org.apache.maven.artifact.repository.DefaultArtifactRepository defines non-transient non-serializable instance field snapshotsBAD_PRACTICESE_BAD_FIELDNot availableMedium

org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.getArtifactMetadataFromDeploymentRepository(ArtifactMetadata, ArtifactRepository, ArtifactRepository)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE433Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE144Medium
exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE163Medium
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.updateSnapshotMetadata(RepositoryMetadata, Map, ArtifactRepository, ArtifactRepository) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR224Medium

org.apache.maven.artifact.resolver.WarningResolutionListener

BugCategoryDetailsLinePriority
Unread field: org.apache.maven.artifact.resolver.WarningResolutionListener.loggerPERFORMANCEURF_UNREAD_FIELD38Medium

org.apache.maven.artifact.versioning.ManagedVersionMap

BugCategoryDetailsLinePriority
org.apache.maven.artifact.versioning.ManagedVersionMap.toString() makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR48Medium

org.apache.maven.profiles.Repository

BugCategoryDetailsLinePriority
org.apache.maven.profiles.Repository defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE90High

org.apache.maven.profiles.RepositoryBase

BugCategoryDetailsLinePriority
Equals method for org.apache.maven.profiles.RepositoryBase assumes the argument is of type RepositoryBaseBAD_PRACTICEBC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS147Medium
org.apache.maven.profiles.RepositoryBase defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE147-156High

org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader

BugCategoryDetailsLinePriority
Private method org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD159Medium
Private method org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getDateValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD247Medium

org.apache.maven.project.DefaultProjectBuilderConfiguration

BugCategoryDetailsLinePriority
org.apache.maven.project.DefaultProjectBuilderConfiguration.getBuildStartTime() may expose internal representation by returning DefaultProjectBuilderConfiguration.buildStartTimeMALICIOUS_CODEEI_EXPOSE_REP98Medium
org.apache.maven.project.DefaultProjectBuilderConfiguration.setBuildStartTime(Date) may expose internal representation by storing an externally mutable object into DefaultProjectBuilderConfiguration.buildStartTimeMALICIOUS_CODEEI_EXPOSE_REP2103Medium

org.apache.maven.project.interpolation.BuildTimestampValueSource

BugCategoryDetailsLinePriority
new org.apache.maven.project.interpolation.BuildTimestampValueSource(Date, String) may expose internal representation by storing an externally mutable object into BuildTimestampValueSource.startTimeMALICIOUS_CODEEI_EXPOSE_REP244Medium

org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction

BugCategoryDetailsLinePriority
Load of known null value in org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(Class, Object)STYLENP_LOAD_OF_KNOWN_NULL_VALUE252Medium

org.apache.maven.repository.MetadataResolutionResult

BugCategoryDetailsLinePriority
The method name org.apache.maven.repository.MetadataResolutionResult.ListOriginatingArtifact(Artifact) doesn't start with a lower case letterBAD_PRACTICENM_METHOD_NAMING_CONVENTION79-81Medium
Unused field: org.apache.maven.repository.MetadataResolutionResult.dirtyTreePERFORMANCEUUF_UNUSED_FIELDNot availableMedium
Unused field: org.apache.maven.repository.MetadataResolutionResult.resolvedGraphPERFORMANCEUUF_UNUSED_FIELDNot availableMedium
Unwritten field: org.apache.maven.repository.MetadataResolutionResult.errorArtifactExceptionsCORRECTNESSUWF_UNWRITTEN_FIELD230Medium

org.apache.maven.repository.legacy.DefaultUpdateCheckManager

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.repository.legacy.DefaultUpdateCheckManager.touch(Artifact, ArtifactRepository, String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE175Medium

org.apache.maven.repository.legacy.DefaultWagonManager

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(ArtifactRepository, File, String, TransferListener, String, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE476Medium
exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(ArtifactRepository, File, String, TransferListener, String, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE338Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.repository.legacy.DefaultWagonManager.verifyChecksum(ChecksumObserver, File, File, String, String, Wagon)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE701Medium
org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(ArtifactRepository, File, String, TransferListener) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR556Medium

org.apache.maven.repository.metadata.DefaultClasspathTransformation

BugCategoryDetailsLinePriority
Dead store to md in org.apache.maven.repository.metadata.DefaultClasspathTransformation.transform(MetadataGraph, ArtifactScopeEnum, boolean)STYLEDLS_DEAD_LOCAL_STORE73Medium

org.apache.maven.repository.metadata.DefaultClasspathTransformation$ClasspathGraphVisitor

BugCategoryDetailsLinePriority
Should org.apache.maven.repository.metadata.DefaultClasspathTransformation$ClasspathGraphVisitor be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC101-175Medium

org.apache.maven.repository.metadata.MetadataGraphEdge

BugCategoryDetailsLinePriority
org.apache.maven.repository.metadata.MetadataGraphEdge defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE86-94High
Possible null pointer dereference of o1 on branch that might be infeasible in org.apache.maven.repository.metadata.MetadataGraphEdge.objectsEqual(Object, Object)STYLENP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE76Medium

org.apache.maven.repository.metadata.MetadataGraphVertex

BugCategoryDetailsLinePriority
Possible null pointer dereference of s1 on branch that might be infeasible in org.apache.maven.repository.metadata.MetadataGraphVertex.compareStrings(String, String)STYLENP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE107Medium

org.apache.maven.repository.metadata.MetadataTreeNode

BugCategoryDetailsLinePriority
org.apache.maven.repository.metadata.MetadataTreeNode.getChildren() may expose internal representation by returning MetadataTreeNode.childrenMALICIOUS_CODEEI_EXPOSE_REP138Medium
org.apache.maven.repository.metadata.MetadataTreeNode.setChildren(MetadataTreeNode[]) may expose internal representation by storing an externally mutable object into MetadataTreeNode.childrenMALICIOUS_CODEEI_EXPOSE_REP2143Medium

org.apache.maven.usability.plugin.ExpressionDocumenter

BugCategoryDetailsLinePriority
Incorrect lazy initialization and update of static field org.apache.maven.usability.plugin.ExpressionDocumenter.expressionDocumentation in org.apache.maven.usability.plugin.ExpressionDocumenter.load()MT_CORRECTNESSLI_LAZY_INIT_UPDATE_STATIC52-54High

org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader

BugCategoryDetailsLinePriority
Private method org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD152Medium
Private method org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getDateValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD240Medium