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 |
---|
159 | 45 | 0 | 0 |
org.apache.maven.artifact.manager.DefaultWagonManager
Bug | Category | Details | Line | Priority |
---|
The class name org.apache.maven.artifact.manager.DefaultWagonManager shadows the simple name of the superclass org.apache.maven.repository.legacy.DefaultWagonManager | BAD_PRACTICE | NM_SAME_SIMPLE_NAME_AS_SUPERCLASS | 46-179 | High |
org.apache.maven.artifact.manager.WagonConfigurationException
Bug | Category | Details | Line | Priority |
---|
The class name org.apache.maven.artifact.manager.WagonConfigurationException shadows the simple name of the superclass org.apache.maven.repository.legacy.WagonConfigurationException | BAD_PRACTICE | NM_SAME_SIMPLE_NAME_AS_SUPERCLASS | 31-37 | High |
org.apache.maven.artifact.manager.WagonManager
Bug | Category | Details | Line | Priority |
---|
The class name org.apache.maven.artifact.manager.WagonManager shadows the simple name of implemented interface org.apache.maven.repository.legacy.WagonManager | BAD_PRACTICE | NM_SAME_SIMPLE_NAME_AS_INTERFACE | Not available | Medium |
org.apache.maven.artifact.repository.DefaultArtifactRepository
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.artifact.repository.DefaultArtifactRepository doesn't override org.apache.maven.wagon.repository.Repository.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 55-265 | Medium |
La classe org.apache.maven.artifact.repository.DefaultArtifactRepository définit le champ d'instance org.apache.maven.artifact.repository.DefaultArtifactRepository.authentication non transient et non sérialisable | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
La classe org.apache.maven.artifact.repository.DefaultArtifactRepository définit le champ d'instance org.apache.maven.artifact.repository.DefaultArtifactRepository.proxy non transient et non sérialisable | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
La classe org.apache.maven.artifact.repository.DefaultArtifactRepository définit le champ d'instance org.apache.maven.artifact.repository.DefaultArtifactRepository.releases non transient et non sérialisable | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
La classe org.apache.maven.artifact.repository.DefaultArtifactRepository définit le champ d'instance org.apache.maven.artifact.repository.DefaultArtifactRepository.snapshots non transient et non sérialisable | BAD_PRACTICE | SE_BAD_FIELD | Not available | Medium |
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.getArtifactMetadataFromDeploymentRepository(ArtifactMetadata, ArtifactRepository, ArtifactRepository) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 433 | Medium |
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 144 | Medium |
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest) ignores exceptional return value of java.io.File.setLastModified(long) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 163 | Medium |
La méthode org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.updateSnapshotMetadata(RepositoryMetadata, Map, ArtifactRepository, ArtifactRepository) fait une utilisation inefficace d'un itérateur sur keySet au lieu d'un itérateur sur entrySet | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 224 | Medium |
org.apache.maven.artifact.repository.metadata.MetadataBridge$MetadataRepository
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.artifact.repository.metadata.MetadataBridge$MetadataRepository doesn't override org.apache.maven.wagon.repository.Repository.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 139-152 | Medium |
org.apache.maven.artifact.resolver.WarningResolutionListener
Bug | Category | Details | Line | Priority |
---|
Champ inutilisé : org.apache.maven.artifact.resolver.WarningResolutionListener.logger | PERFORMANCE | URF_UNREAD_FIELD | 38 | Medium |
org.apache.maven.artifact.versioning.ManagedVersionMap
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.artifact.versioning.ManagedVersionMap.toString() fait une utilisation inefficace d'un itérateur sur keySet au lieu d'un itérateur sur entrySet | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 48 | Medium |
org.apache.maven.profiles.Repository
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.profiles.Repository définit equals() et utilise Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 90 | High |
org.apache.maven.profiles.RepositoryBase
org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader
Bug | Category | Details | Line | Priority |
---|
La méthode privée org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getBooleanValue(String, String, XmlPullParser) n'est jamais appelée | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 159 | Medium |
La méthode privée org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getDateValue(String, String, XmlPullParser) n'est jamais appelée | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 247 | Medium |
org.apache.maven.project.DefaultProjectBuilderConfiguration
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.project.DefaultProjectBuilderConfiguration.getBuildStartTime() risque d'exposer sa représentation interne en renvoyant org.apache.maven.project.DefaultProjectBuilderConfiguration.buildStartTime | MALICIOUS_CODE | EI_EXPOSE_REP | 98 | Medium |
La méthode org.apache.maven.project.DefaultProjectBuilderConfiguration.setBuildStartTime(Date) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.project.DefaultProjectBuilderConfiguration.buildStartTime | MALICIOUS_CODE | EI_EXPOSE_REP2 | 103 | Medium |
org.apache.maven.project.interpolation.BuildTimestampValueSource
Bug | Category | Details | Line | Priority |
---|
La méthode new org.apache.maven.project.interpolation.BuildTimestampValueSource(Date, String) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.project.interpolation.BuildTimestampValueSource.startTime | MALICIOUS_CODE | EI_EXPOSE_REP2 | 44 | Medium |
org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction
Bug | Category | Details | Line | Priority |
---|
Chargement d'une valeur connue pour être à null dans org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(Class, Object) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 252 | Medium |
org.apache.maven.repository.MetadataResolutionResult
Bug | Category | Details | Line | Priority |
---|
Le nom de la méthode org.apache.maven.repository.MetadataResolutionResult.ListOriginatingArtifact(Artifact) ne commence pas par une minuscule | BAD_PRACTICE | NM_METHOD_NAMING_CONVENTION | 79-81 | Medium |
Champ inutilisé : org.apache.maven.repository.MetadataResolutionResult.dirtyTree | PERFORMANCE | UUF_UNUSED_FIELD | Not available | Medium |
Champ inutilisé : org.apache.maven.repository.MetadataResolutionResult.resolvedGraph | PERFORMANCE | UUF_UNUSED_FIELD | Not available | Medium |
Champ jamais écrit : org.apache.maven.repository.MetadataResolutionResult.errorArtifactExceptions | CORRECTNESS | UWF_UNWRITTEN_FIELD | 230 | Medium |
org.apache.maven.repository.UserLocalArtifactRepository
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.repository.UserLocalArtifactRepository doesn't override org.apache.maven.artifact.repository.MavenArtifactRepository.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 34-72 | Medium |
org.apache.maven.repository.legacy.DefaultUpdateCheckManager
Bug | Category | Details | Line | Priority |
---|
Method org.apache.maven.repository.legacy.DefaultUpdateCheckManager.read(File) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 368 | Medium |
org.apache.maven.repository.legacy.DefaultUpdateCheckManager.touch(Artifact, ArtifactRepository, String) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 175 | Medium |
org.apache.maven.repository.legacy.DefaultWagonManager
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(ArtifactRepository, File, String, TransferListener, String, boolean) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 476 | Medium |
org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(ArtifactRepository, File, String, TransferListener, String, boolean) ignores exceptional return value of java.io.File.setLastModified(long) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 338 | Medium |
org.apache.maven.repository.legacy.DefaultWagonManager.verifyChecksum(ChecksumObserver, File, File, String, String, Wagon) ignores exceptional return value of java.io.File.delete() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 701 | Medium |
La méthode org.apache.maven.repository.legacy.DefaultWagonManager.putRemoteFile(ArtifactRepository, File, String, TransferListener) fait une utilisation inefficace d'un itérateur sur keySet au lieu d'un itérateur sur entrySet | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 556 | Medium |
org.apache.maven.repository.metadata.DefaultClasspathTransformation
Bug | Category | Details | Line | Priority |
---|
Alimentation à perte d'une variable locale dans la méthode org.apache.maven.repository.metadata.DefaultClasspathTransformation.transform(MetadataGraph, ArtifactScopeEnum, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 73 | Medium |
org.apache.maven.repository.metadata.DefaultClasspathTransformation$ClasspathGraphVisitor
Bug | Category | Details | Line | Priority |
---|
La classe org.apache.maven.repository.metadata.DefaultClasspathTransformation$ClasspathGraphVisitor devrait-elle être une classe interne static ? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 101-175 | Medium |
org.apache.maven.repository.metadata.MetadataGraphEdge
Bug | Category | Details | Line | Priority |
---|
org.apache.maven.repository.metadata.MetadataGraphEdge définit equals() et utilise Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 86-94 | High |
Possible null pointer dereference of o1 on path that might be infeasible in org.apache.maven.repository.metadata.MetadataGraphEdge.objectsEqual(Object, Object) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 76 | Medium |
org.apache.maven.repository.metadata.MetadataGraphVertex
Bug | Category | Details | Line | Priority |
---|
Possible null pointer dereference of s1 on path that might be infeasible in org.apache.maven.repository.metadata.MetadataGraphVertex.compareStrings(String, String) | STYLE | NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE | 107 | Medium |
org.apache.maven.repository.metadata.MetadataTreeNode
Bug | Category | Details | Line | Priority |
---|
La méthode org.apache.maven.repository.metadata.MetadataTreeNode.getChildren() risque d'exposer sa représentation interne en renvoyant org.apache.maven.repository.metadata.MetadataTreeNode.children | MALICIOUS_CODE | EI_EXPOSE_REP | 138 | Medium |
La méthode org.apache.maven.repository.metadata.MetadataTreeNode.setChildren(MetadataTreeNode[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.repository.metadata.MetadataTreeNode.children | MALICIOUS_CODE | EI_EXPOSE_REP2 | 143 | Medium |
org.apache.maven.usability.plugin.ExpressionDocumenter
Bug | Category | Details | Line | Priority |
---|
Incorrect lazy initialization and update of static field org.apache.maven.usability.plugin.ExpressionDocumenter.expressionDocumentation in org.apache.maven.usability.plugin.ExpressionDocumenter.load() | MT_CORRECTNESS | LI_LAZY_INIT_UPDATE_STATIC | 52-54 | High |
org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader
Bug | Category | Details | Line | Priority |
---|
La méthode privée org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getBooleanValue(String, String, XmlPullParser) n'est jamais appelée | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 152 | Medium |
La méthode privée org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getDateValue(String, String, XmlPullParser) n'est jamais appelée | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 240 | Medium |