FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.2

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
84 48 0 0

org.apache.maven.shared.release.DefaultReleaseManager

Bug Category Details Line Priority
Unused field: org.apache.maven.shared.release.DefaultReleaseManager.scmRepositoryConfigurator PERFORMANCE UUF_UNUSED_FIELD Not available Medium

org.apache.maven.shared.release.ReleaseResult

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.shared.release.ReleaseResult.getStackTrace(Exception): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 133 High
Found reliance on default encoding in org.apache.maven.shared.release.ReleaseResult.getStackTrace(Exception): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 127 High

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

Bug Category Details Line Priority
Read of unwritten field secDispatcher in org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.encryptAndDecorate(String) CORRECTNESS NP_UNWRITTEN_FIELD 347 Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.delete(ReleaseDescriptor) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 125 Medium
Unwritten field: org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore.secDispatcher CORRECTNESS UWF_UNWRITTEN_FIELD 347 Medium

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

Bug Category Details Line Priority
Null pointer dereference of ReleaseDescriptor.resolvedSnapshotDependencies in org.apache.maven.shared.release.config.ReleaseDescriptor.getDependencyDevelopmentVersion(String) CORRECTNESS NP_ALWAYS_NULL 1769 High
Null pointer dereference of ReleaseDescriptor.resolvedSnapshotDependencies in org.apache.maven.shared.release.config.ReleaseDescriptor.getDependencyReleaseVersion(String) CORRECTNESS NP_ALWAYS_NULL 1783 High
Possible null pointer dereference of that on branch that might be infeasible in org.apache.maven.shared.release.config.ReleaseDescriptor.compareScmCollections(Map) STYLE NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE 1986 Medium
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) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1859 Medium
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) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1872 Medium
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) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1885 Medium
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) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 1897 Medium

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

Bug Category Details Line Priority
Dead store to versionMap in org.apache.maven.shared.release.config.ReleaseUtils.loadResolvedDependencies(Properties, ReleaseDescriptor) STYLE DLS_DEAD_LOCAL_STORE 247 Medium

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

Bug Category Details Line Priority
Private method org.apache.maven.shared.release.config.io.xpp3.ReleaseDescriptorXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 148 Medium
Private method org.apache.maven.shared.release.config.io.xpp3.ReleaseDescriptorXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 236 Medium

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

Bug Category Details Line Priority
Unwritten field: org.apache.maven.shared.release.exec.AbstractMavenExecutor.cipher CORRECTNESS UWF_UNWRITTEN_FIELD 238 Medium
Unwritten field: org.apache.maven.shared.release.exec.AbstractMavenExecutor.secDispatcher CORRECTNESS UWF_UNWRITTEN_FIELD 209 Medium

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

Bug Category Details Line Priority
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) I18N DM_DEFAULT_ENCODING 84 High

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

Bug Category Details Line Priority
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) I18N DM_DEFAULT_ENCODING 376 High

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

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.maven.shared.release.exec.TeeOutputStream(OutputStream, String): String.getBytes() I18N DM_DEFAULT_ENCODING 42 High
Found reliance on default encoding in org.apache.maven.shared.release.exec.TeeOutputStream.getContent(): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 85 High
Found reliance on default encoding in org.apache.maven.shared.release.exec.TeeOutputStream.toString(): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 80 High

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

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.deletePomBackup(MavenProject) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 55 Medium
Unread field: org.apache.maven.shared.release.phase.AbstractBackupPomsPhase.backupSuffix; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 33 Medium

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

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.clean(List) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 723 Medium
Unwritten field: org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.pomSuffix CORRECTNESS UWF_UNWRITTEN_FIELD 236 Medium
Unwritten field: org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.scmTranslators CORRECTNESS UWF_UNWRITTEN_FIELD 95 Medium

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

Bug Category Details Line Priority
Unread public/protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.afterBranchOrTag STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 58 Medium
Unread public/protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.beforeBranchOrTag STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 56 Medium
Unwritten public or protected field: org.apache.maven.shared.release.phase.AbstractScmCommitPhase.messageFormat STYLE UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD 191 Medium

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

Bug Category Details Line Priority
Switch statement found in org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.resolveSnapshots(Set, Set, Set, Set, ReleaseDescriptor) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 377-404 Medium
Unwritten field: org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.artifactFactory CORRECTNESS UWF_UNWRITTEN_FIELD 136 Medium

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

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.release.phase.CheckoutProjectFromScm.performCheckout(ReleaseDescriptor, ReleaseEnvironment, List) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 210 Medium

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

Bug Category Details Line Priority
Read of unwritten field pathTranslator in org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.createReleaseModel(MavenProject, ReleaseDescriptor, ReleaseEnvironment, List, ReleaseResult) CORRECTNESS NP_UNWRITTEN_FIELD 294 Medium
Read of unwritten field scmTranslators in org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.getScmTranslator(ScmRepository) CORRECTNESS NP_UNWRITTEN_FIELD 354 Medium
Unwritten field: org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.pathTranslator CORRECTNESS UWF_UNWRITTEN_FIELD 294 Medium
Unwritten field: org.apache.maven.shared.release.phase.GenerateReleasePomsPhase.scmTranslators CORRECTNESS UWF_UNWRITTEN_FIELD 354 Medium

org.apache.maven.shared.release.phase.MapVersionsPhase

Bug Category Details Line Priority
Read of unwritten field versionPolicies in org.apache.maven.shared.release.phase.MapVersionsPhase.resolveSuggestedVersion(String, String) CORRECTNESS NP_UNWRITTEN_FIELD 320 Medium
Unwritten field: org.apache.maven.shared.release.phase.MapVersionsPhase.versionPolicies CORRECTNESS UWF_UNWRITTEN_FIELD 320 Medium

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

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.release.phase.RemoveReleasePomsPhase.removeReleasePomsFromFilesystem(boolean, ReleaseResult, List) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 117 Medium

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

Bug Category Details Line Priority
Read of unwritten field scmTranslators in org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ReleaseDescriptor, ReleaseEnvironment, List) CORRECTNESS NP_UNWRITTEN_FIELD 144 Medium
Unwritten field: org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.scmTranslators CORRECTNESS UWF_UNWRITTEN_FIELD 144 Medium

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

Bug Category Details Line Priority
Unwritten field: org.apache.maven.shared.release.phase.ScmCommitDevelopmentPhase.rollbackMessageFormat CORRECTNESS UWF_UNWRITTEN_FIELD 98 Medium

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

Bug Category Details Line Priority
Unwritten field: org.apache.maven.shared.release.phase.ScmCommitPreparationPhase.rollbackMessageFormat CORRECTNESS UWF_UNWRITTEN_FIELD 83 Medium

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

Bug Category Details Line Priority
Read of unwritten field secDispatcher in org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.decrypt(String, String) CORRECTNESS NP_UNWRITTEN_FIELD 182 Medium
Unwritten field: org.apache.maven.shared.release.scm.DefaultScmRepositoryConfigurator.secDispatcher CORRECTNESS UWF_UNWRITTEN_FIELD 182 Medium

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

Bug Category Details Line Priority
org.apache.maven.shared.release.versions.DefaultVersionInfo defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 254-259 High