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
844600

org.apache.maven.shared.release.DefaultReleaseManager

BugCategoryDetailsLinePriority
Unused field: org.apache.maven.shared.release.DefaultReleaseManager.scmRepositoryConfiguratorPERFORMANCEUUF_UNUSED_FIELDNot availableMedium

org.apache.maven.shared.release.ReleaseResult

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.release.ReleaseResult.getStackTrace(Exception): java.io.ByteArrayOutputStream.toString()I18NDM_DEFAULT_ENCODING133High
Found reliance on default encoding in org.apache.maven.shared.release.ReleaseResult.getStackTrace(Exception): new java.io.PrintStream(OutputStream)I18NDM_DEFAULT_ENCODING127High

org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore

BugCategoryDetailsLinePriority
Read of unwritten field secDispatcher in org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.encryptAndDecorate(String)CORRECTNESSNP_UNWRITTEN_FIELD343Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.delete(ReleaseDescriptor)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE125Medium
Unwritten field: org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.secDispatcherCORRECTNESSUWF_UNWRITTEN_FIELD343Medium

org.apache.maven.shared.release.config.ReleaseDescriptor

BugCategoryDetailsLinePriority
Null pointer dereference of ReleaseDescriptor.resolvedSnapshotDependencies in org.apache.maven.shared.release.config.ReleaseDescriptor.getDependencyDevelopmentVersion(String)CORRECTNESSNP_ALWAYS_NULL1741High
Null pointer dereference of ReleaseDescriptor.resolvedSnapshotDependencies in org.apache.maven.shared.release.config.ReleaseDescriptor.getDependencyReleaseVersion(String)CORRECTNESSNP_ALWAYS_NULL1755High
Possible null pointer dereference of that on branch that might be infeasible in org.apache.maven.shared.release.config.ReleaseDescriptor.compareScmCollections(Map)STYLENP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE1958Medium
Redundant nullcheck of org.apache.maven.shared.release.config.ReleaseDescriptor.checkModificationExcludes, which is known to be non-null in org.apache.maven.shared.release.config.ReleaseDescriptor.equals(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE1831Medium
Redundant nullcheck of org.apache.maven.shared.release.config.ReleaseDescriptor.developmentVersions, which is known to be non-null in org.apache.maven.shared.release.config.ReleaseDescriptor.equals(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE1844Medium
Redundant nullcheck of org.apache.maven.shared.release.config.ReleaseDescriptor.originalScmInfo, which is known to be non-null in org.apache.maven.shared.release.config.ReleaseDescriptor.equals(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE1857Medium
Redundant nullcheck of org.apache.maven.shared.release.config.ReleaseDescriptor.releaseVersions, which is known to be non-null in org.apache.maven.shared.release.config.ReleaseDescriptor.equals(Object)STYLERCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE1869Medium

org.apache.maven.shared.release.config.ReleaseUtils

BugCategoryDetailsLinePriority
Dead store to versionMap in org.apache.maven.shared.release.config.ReleaseUtils.loadResolvedDependencies(Properties, ReleaseDescriptor)STYLEDLS_DEAD_LOCAL_STORE243Medium

org.apache.maven.shared.release.config.io.xpp3.ReleaseDescriptorXpp3Reader

BugCategoryDetailsLinePriority
Private method org.apache.maven.shared.release.config.io.xpp3.ReleaseDescriptorXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD151Medium
Private method org.apache.maven.shared.release.config.io.xpp3.ReleaseDescriptorXpp3Reader.getDateValue(String, String, XmlPullParser) is never calledPERFORMANCEUPM_UNCALLED_PRIVATE_METHOD239Medium

org.apache.maven.shared.release.exec.AbstractMavenExecutor

BugCategoryDetailsLinePriority
Unwritten field: org.apache.maven.shared.release.exec.AbstractMavenExecutor.cipherCORRECTNESSUWF_UNWRITTEN_FIELD238Medium
Unwritten field: org.apache.maven.shared.release.exec.AbstractMavenExecutor.secDispatcherCORRECTNESSUWF_UNWRITTEN_FIELD209Medium

org.apache.maven.shared.release.exec.ForkedMavenExecutor

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(File, List, ReleaseEnvironment, boolean, String, String, ReleaseResult): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING84High

org.apache.maven.shared.release.exec.InvokerMavenExecutor

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(File, List, ReleaseEnvironment, boolean, String, String, ReleaseResult): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING357High

org.apache.maven.shared.release.exec.TeeOutputStream

BugCategoryDetailsLinePriority
Found reliance on default encoding in new org.apache.maven.shared.release.exec.TeeOutputStream(OutputStream, String): String.getBytes()I18NDM_DEFAULT_ENCODING42High
Found reliance on default encoding in org.apache.maven.shared.release.exec.TeeOutputStream.getContent(): java.io.ByteArrayOutputStream.toString()I18NDM_DEFAULT_ENCODING85High
Found reliance on default encoding in org.apache.maven.shared.release.exec.TeeOutputStream.toString(): java.io.ByteArrayOutputStream.toString()I18NDM_DEFAULT_ENCODING80High

org.apache.maven.shared.release.phase.AbstractBackupPomsPhase

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.deletePomBackup(MavenProject)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE55Medium
Unread field: org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.backupSuffix; should this field be static?PERFORMANCESS_SHOULD_BE_STATIC33Medium

org.apache.maven.shared.release.phase.AbstractRewritePomsPhase

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.clean(List)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE722Medium
Unwritten field: org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.pomSuffixCORRECTNESSUWF_UNWRITTEN_FIELD236Medium
Unwritten field: org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.scmTranslatorsCORRECTNESSUWF_UNWRITTEN_FIELD95Medium

org.apache.maven.shared.release.phase.AbstractScmCommitPhase

BugCategoryDetailsLinePriority
Unread public/protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.afterBranchOrTagSTYLEURF_UNREAD_PUBLIC_OR_PROTECTED_FIELD58Medium
Unread public/protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.beforeBranchOrTagSTYLEURF_UNREAD_PUBLIC_OR_PROTECTED_FIELD56Medium
Unwritten public or protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.messageFormatSTYLEUWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD191Medium

org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase

BugCategoryDetailsLinePriority
Switch statement found in org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.resolveSnapshots(Set, Set, Set, Set, ReleaseDescriptor) where default case is missingSTYLESF_SWITCH_NO_DEFAULT377-404Medium
Unwritten field: org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.artifactFactoryCORRECTNESSUWF_UNWRITTEN_FIELD136Medium

org.apache.maven.shared.release.phase.CheckoutProjectFromScm

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.release.phase.CheckoutProjectFromScm.performCheckout(ReleaseDescriptor, ReleaseEnvironment, List)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE210Medium

org.apache.maven.shared.release.phase.GenerateReleasePomsPhase

BugCategoryDetailsLinePriority
Read of unwritten field pathTranslator in org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.createReleaseModel(MavenProject, ReleaseDescriptor, ReleaseEnvironment, List, ReleaseResult)CORRECTNESSNP_UNWRITTEN_FIELD294Medium
Read of unwritten field scmTranslators in org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.getScmTranslator(ScmRepository)CORRECTNESSNP_UNWRITTEN_FIELD353Medium
Unwritten field: org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.pathTranslatorCORRECTNESSUWF_UNWRITTEN_FIELD294Medium
Unwritten field: org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.scmTranslatorsCORRECTNESSUWF_UNWRITTEN_FIELD353Medium

org.apache.maven.shared.release.phase.RemoveReleasePomsPhase

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.RemoveReleasePomsPhase.removeReleasePomsFromFilesystem(boolean, ReleaseResult, List)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE117Medium

org.apache.maven.shared.release.phase.ScmCheckModificationsPhase

BugCategoryDetailsLinePriority
Read of unwritten field scmTranslators in org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ReleaseDescriptor, ReleaseEnvironment, List)CORRECTNESSNP_UNWRITTEN_FIELD144Medium
Unwritten field: org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.scmTranslatorsCORRECTNESSUWF_UNWRITTEN_FIELD144Medium

org.apache.maven.shared.release.phase.ScmCommitDevelopmentPhase

BugCategoryDetailsLinePriority
Unwritten field: org.apache.maven.shared.release.phase.ScmCommitDevelopmentPhase.rollbackMessageFormatCORRECTNESSUWF_UNWRITTEN_FIELD98Medium

org.apache.maven.shared.release.phase.ScmCommitPreparationPhase

BugCategoryDetailsLinePriority
Unwritten field: org.apache.maven.shared.release.phase.ScmCommitPreparationPhase.rollbackMessageFormatCORRECTNESSUWF_UNWRITTEN_FIELD83Medium

org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator

BugCategoryDetailsLinePriority
Read of unwritten field secDispatcher in org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.decrypt(String, String)CORRECTNESSNP_UNWRITTEN_FIELD182Medium
Unwritten field: org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.secDispatcherCORRECTNESSUWF_UNWRITTEN_FIELD182Medium

org.apache.maven.shared.release.versions.DefaultVersionInfo

BugCategoryDetailsLinePriority
org.apache.maven.shared.release.versions.DefaultVersionInfo defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE254-259High