FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 2.0.3

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
163 46 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 233 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
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.getArtifactMetadataFromDeploymentRepository(ArtifactMetadata, ArtifactRepository, ArtifactRepository) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 452 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 152 Medium
Exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(RepositoryMetadata, RepositoryRequest) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 172 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 237 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 88 High

org.apache.maven.profiles.RepositoryBase

Bug Category Details Line Priority
Equals method for org.apache.maven.profiles.RepositoryBase assumes the argument is of type RepositoryBase BAD_PRACTICE BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS 145 Medium
org.apache.maven.profiles.RepositoryBase définit equals() et utilise Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 145-154 High

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

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 398 High
Boxing/unboxing to parse a primitive org.apache.maven.profiles.io.xpp3.ProfilesXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 428 High
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 183 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 271 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 255 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.legacy.DefaultUpdateCheckManager

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.repository.legacy.DefaultUpdateCheckManager.touch(Artifact, ArtifactRepository, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 173 Medium

org.apache.maven.repository.legacy.DefaultWagonManager

Bug Category Details Line Priority
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_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 400 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.repository.legacy.DefaultWagonManager.verifyChecksum(ChecksumObserver, File, File, String, String, Wagon) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 765 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 624 Medium

org.apache.maven.repository.legacy.LegacyRepositorySystem

Bug Category Details Line Priority
Format-string method String.format(String, Object[]) called with format string "Invalid version specification '%s' creating extension artifact '%s:%s:%s'." wants 4 arguments but is given 5 in org.apache.maven.repository.legacy.LegacyRepositorySystem.createExtensionArtifact(String, String, String) CORRECTNESS VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED 187 Medium
Format-string method String.format(String, Object[]) called with format string "Invalid version specification '%s' creating plugin artifact '%s'." wants 2 arguments but is given 3 in org.apache.maven.repository.legacy.LegacyRepositorySystem.createPluginArtifact(Plugin) CORRECTNESS VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED 218 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 100-174 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-95 High

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 53-55 High

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

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 391 High
Boxing/unboxing to parse a primitive org.apache.maven.usability.plugin.io.xpp3.ParamdocXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 421 High
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 176 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 264 Medium