Fork me on GitHub

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
64 62 0 0

Files

Class Bugs
org.apache.maven.plugin.eclipse.EclipsePlugin 5
org.apache.maven.plugin.eclipse.EclipseToMavenMojo 1
org.apache.maven.plugin.eclipse.InstallPluginsMojo 3
org.apache.maven.plugin.eclipse.RadCleanMojo 1
org.apache.maven.plugin.eclipse.RadPlugin 1
org.apache.maven.plugin.eclipse.WorkspaceConfiguration 2
org.apache.maven.plugin.eclipse.WorkspaceDependencyResolveMojo 1
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations 7
org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter 2
org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter 5
org.apache.maven.plugin.eclipse.writers.EclipseLaunchConfigurationWriter 1
org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter 3
org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig 4
org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseHibernateWriter 1
org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseMetadataWriter 1
org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseSpringBeansWriter 1
org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseStrutsDataWriter 2
org.apache.maven.plugin.eclipse.writers.rad.RadApplicationXMLWriter 1
org.apache.maven.plugin.eclipse.writers.rad.RadEjbClasspathWriter 1
org.apache.maven.plugin.eclipse.writers.rad.RadLibCopier 1
org.apache.maven.plugin.eclipse.writers.workspace.EclipseCodeFormatterProfile 2
org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter 5
org.apache.maven.plugin.eclipse.writers.workspace.EclipseWorkspaceWriter 3
org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpApplicationXMLWriter 3
org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpComponentWriter 1
org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpFacetsWriter 1
org.apache.maven.plugin.ide.AbstractIdeSupportMojo 1
org.apache.maven.plugin.ide.IdeDependency 2

org.apache.maven.plugin.eclipse.EclipsePlugin

Bug Category Details Line Priority
Test for floating point equality in org.apache.maven.plugin.eclipse.EclipsePlugin.fillDefaultBuilders(String) STYLE FE_FLOATING_POINT_EQUALITY 1576 Medium
Test for floating point equality in org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(IdeDependency[]) STYLE FE_FLOATING_POINT_EQUALITY 1175 Medium
org.apache.maven.plugin.eclipse.EclipsePlugin.WTP_SUPPORTED_VERSIONS should be package protected MALICIOUS_CODE MS_PKGPROTECT 151 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.EclipsePlugin.extractResourceDirs(Set, List, File, File, boolean, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1734 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.EclipsePlugin.writeAdditionalConfig() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1238 Medium

org.apache.maven.plugin.eclipse.EclipseToMavenMojo

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.eclipse.EclipseToMavenMojo.writeArtifact(EclipseOsgiPlugin, Model, ArtifactRepository) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 491 Medium

org.apache.maven.plugin.eclipse.InstallPluginsMojo

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.InstallPluginsMojo.install(Artifact, MavenProject) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 259 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.InstallPluginsMojo.execute() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 180 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.InstallPluginsMojo.performFileOperations(boolean, Artifact, File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 375 Medium

org.apache.maven.plugin.eclipse.RadCleanMojo

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.RadCleanMojo.handleWarLibs() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 130 Medium

org.apache.maven.plugin.eclipse.RadPlugin

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.RadPlugin.addManifestResource(EclipseWriterConfig) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 183 Medium

org.apache.maven.plugin.eclipse.WorkspaceConfiguration

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.WorkspaceConfiguration.getWorkspaceArtefacts() may expose internal representation by returning WorkspaceConfiguration.workspaceArtefacts MALICIOUS_CODE EI_EXPOSE_REP 98 Medium
org.apache.maven.plugin.eclipse.WorkspaceConfiguration.setWorkspaceArtefacts(IdeDependency[]) may expose internal representation by storing an externally mutable object into WorkspaceConfiguration.workspaceArtefacts MALICIOUS_CODE EI_EXPOSE_REP2 103 Medium

org.apache.maven.plugin.eclipse.WorkspaceDependencyResolveMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.WorkspaceDependencyResolveMojo.execute(): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 111 High

org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readArtefact(File, Log): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 364 High
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readAvailableJREs(File, Log) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 480 Medium
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readDefinedServers(WorkspaceConfiguration, Log) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 407 Medium
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readAvailableJREs(File, Log) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 480 Medium
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readAvailableJREs(File, Log) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 512 Medium
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.readDefinedServers(WorkspaceConfiguration, Log) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 407 Medium
org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocations.detectWTPDefaultServer(WorkspaceConfiguration, String, Log) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 124 Medium

org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter.write() may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 290 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.AbstractEclipseManifestWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 286 Medium

org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter.write() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 116 Medium
org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter.write() may fail to clean up java.io.OutputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 123 Medium
org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter.write() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 116 Medium
org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter.write() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 128 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.EclipseAjdtWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 101 Medium

org.apache.maven.plugin.eclipse.writers.EclipseLaunchConfigurationWriter

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.EclipseLaunchConfigurationWriter.write() concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 129 Medium

org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.createNewFile() ignored in org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter.addManifestResource(Log, EclipseWriterConfig) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 154 Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter.addManifestResource(Log, EclipseWriterConfig) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 152 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.EclipseManifestWriter.addManifestResource(Log, EclipseWriterConfig) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 148 Medium

org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig.getDeps() may expose internal representation by returning EclipseWriterConfig.deps MALICIOUS_CODE EI_EXPOSE_REP 162 Medium
org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig.getSourceDirs() may expose internal representation by returning EclipseWriterConfig.sourceDirs MALICIOUS_CODE EI_EXPOSE_REP 242 Medium
org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig.setDeps(IdeDependency[]) may expose internal representation by storing an externally mutable object into EclipseWriterConfig.deps MALICIOUS_CODE EI_EXPOSE_REP2 172 Medium
org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig.setSourceDirs(EclipseSourceDir[]) may expose internal representation by storing an externally mutable object into EclipseWriterConfig.sourceDirs MALICIOUS_CODE EI_EXPOSE_REP2 252 Medium

org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseHibernateWriter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseHibernateWriter.write(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 115 High

org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseMetadataWriter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseMetadataWriter.write(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 94 High

org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseSpringBeansWriter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseSpringBeansWriter.write(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 91 High

org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseStrutsDataWriter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseStrutsDataWriter.write(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 96 High
Write to static field org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseStrutsDataWriter.strutsPatterns from instance method new org.apache.maven.plugin.eclipse.writers.myeclipse.MyEclipseStrutsDataWriter(Map) STYLE ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD 76 High

org.apache.maven.plugin.eclipse.writers.rad.RadApplicationXMLWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.rad.RadApplicationXMLWriter.writePrettyXmlFile(File, Xpp3Dom) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 519 Medium

org.apache.maven.plugin.eclipse.writers.rad.RadEjbClasspathWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.rad.RadEjbClasspathWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 97 Medium

org.apache.maven.plugin.eclipse.writers.rad.RadLibCopier

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.rad.RadLibCopier.handleWarLibs(IdeDependency[]) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 154 Medium

org.apache.maven.plugin.eclipse.writers.workspace.EclipseCodeFormatterProfile

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.workspace.EclipseCodeFormatterProfile.convertFormatterToString(URL): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 122 High
Found reliance on default encoding in org.apache.maven.plugin.eclipse.writers.workspace.EclipseCodeFormatterProfile.loadDefaultProfileName(URL): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 76 High

org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter.write() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 143 Medium
org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter.write() may fail to clean up java.io.OutputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 155 Medium
org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter.write() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 143 Medium
org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter.write() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 155 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.workspace.EclipseSettingsWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 128 Medium

org.apache.maven.plugin.eclipse.writers.workspace.EclipseWorkspaceWriter

Bug Category Details Line Priority
org.apache.maven.plugin.eclipse.writers.workspace.EclipseWorkspaceWriter.loadProperties(File) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 143 Medium
org.apache.maven.plugin.eclipse.writers.workspace.EclipseWorkspaceWriter.loadProperties(File) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 143 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.workspace.EclipseWorkspaceWriter.init(Log, WorkspaceConfiguration) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 84 Medium

org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpApplicationXMLWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpApplicationXMLWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 145 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpApplicationXMLWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 140 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpApplicationXMLWriter.writePrettyXmlFile(File, Xpp3Dom) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 614 Medium

org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpComponentWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpComponentWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 89 Medium

org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpFacetsWriter

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.eclipse.writers.wtp.EclipseWtpFacetsWriter.write() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 91 Medium

org.apache.maven.plugin.ide.AbstractIdeSupportMojo

Bug Category Details Line Priority
exceptional return value of java.io.File.createNewFile() ignored in org.apache.maven.plugin.ide.AbstractIdeSupportMojo.resolveDependenciesWithClassifier(IdeDependency[], String, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 920 Medium

org.apache.maven.plugin.ide.IdeDependency

Bug Category Details Line Priority
org.apache.maven.plugin.ide.IdeDependency.equals(Object) is unusual STYLE EQ_UNUSUAL 589 Medium
org.apache.maven.plugin.ide.IdeDependency.equals(Object) does not check for null argument BAD_PRACTICE NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT 589 Medium