FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
28 23 0 0

de.smartics.maven.exceptions.AbstractElementReport

Bug Category Details Line Priority
Found reliance on default encoding in de.smartics.maven.exceptions.AbstractElementReport.provideSink(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 290 High
de.smartics.maven.exceptions.AbstractElementReport.provideSink() may fail to clean up java.io.Writer EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 290 Medium
exceptional return value of java.io.File.mkdirs() ignored in de.smartics.maven.exceptions.AbstractElementReport.provideSink() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 288 Medium

de.smartics.maven.exceptions.AbstractSdocCodeMojo

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.AbstractSdocCodeMojo.execute() STYLE REC_CATCH_EXCEPTION 295 Low

de.smartics.maven.exceptions.CopySdocCodeMojo

Bug Category Details Line Priority
Read of unwritten public or protected field genSrcDir in de.smartics.maven.exceptions.CopySdocCodeMojo.handleGeneratedDocuments() STYLE NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD 85 Medium
exceptional return value of java.io.File.delete() ignored in de.smartics.maven.exceptions.CopySdocCodeMojo.handleMetaInfDir() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 96 Medium
Unwritten public or protected field: de.smartics.maven.exceptions.CopySdocCodeMojo.genSrcDir STYLE UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD 79 Medium

de.smartics.maven.exceptions.ExceptionCodeReport

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.ExceptionCodeReport.executeReport(Locale) STYLE REC_CATCH_EXCEPTION 225 Low

de.smartics.maven.exceptions.ExportSdocCodeMojo

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.ExportSdocCodeMojo.attachArtifact() STYLE REC_CATCH_EXCEPTION 166 Low
Unwritten field: de.smartics.maven.exceptions.ExportSdocCodeMojo.classifier CORRECTNESS UWF_UNWRITTEN_FIELD 148 Medium
Unwritten field: de.smartics.maven.exceptions.ExportSdocCodeMojo.sdocJarArchiver CORRECTNESS UWF_UNWRITTEN_FIELD 154 Medium
Unwritten field: de.smartics.maven.exceptions.ExportSdocCodeMojo.attach CORRECTNESS UWF_UNWRITTEN_FIELD 161 Low

de.smartics.maven.exceptions.conf.DefaultJavadocProjectConfiguration$Builder

Bug Category Details Line Priority
de.smartics.maven.exceptions.conf.DefaultJavadocProjectConfiguration$Builder.build() creates a de.smartics.maven.exceptions.runtime.ProjectClassLoader classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 280 Medium

de.smartics.maven.exceptions.conf.DefaultProjectConfiguration$Builder

Bug Category Details Line Priority
de.smartics.maven.exceptions.conf.DefaultProjectConfiguration$Builder.build() creates a de.smartics.maven.exceptions.runtime.ProjectClassLoader classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 465 Medium
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.conf.DefaultProjectConfiguration$Builder.checkConstraints() STYLE REC_CATCH_EXCEPTION 526 Low
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.conf.DefaultProjectConfiguration$Builder.createCodeBundleMapper(ClassLoader) STYLE REC_CATCH_EXCEPTION 491 Low

de.smartics.maven.exceptions.runtime.AbstractProjectClassLoader

Bug Category Details Line Priority
de.smartics.maven.exceptions.runtime.AbstractProjectClassLoader.loadClassFromLibrary(String, String, File) may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 147 Medium

de.smartics.maven.exceptions.runtime.RuntimeUtils

Bug Category Details Line Priority
invocation of reflect.Field.setAccessible(boolean), which should be invoked from within a doPrivileged block, in de.smartics.maven.exceptions.runtime.RuntimeUtils.loadStaticFieldInstance(Class, String) MALICIOUS_CODE DP_DO_INSIDE_DO_PRIVILEGED 157 Low
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.runtime.RuntimeUtils.loadStaticFieldInstance(Class, String) STYLE REC_CATCH_EXCEPTION 164 Low

de.smartics.maven.exceptions.util.FileNameUtils

Bug Category Details Line Priority
Possible null pointer dereference of dirName in de.smartics.maven.exceptions.util.FileNameUtils.createPackageName(String) CORRECTNESS NP_NULL_ON_SOME_PATH 208 Medium
Exception is caught when Exception is not thrown in de.smartics.maven.exceptions.util.FileNameUtils.internalCreatePackageName(String) STYLE REC_CATCH_EXCEPTION 183 Low

de.smartics.maven.exceptions.util.TextCoder

Bug Category Details Line Priority
Found reliance on default encoding in de.smartics.maven.exceptions.util.TextCoder.run(String): String.getBytes() I18N DM_DEFAULT_ENCODING 80 High
Found reliance on default encoding in de.smartics.maven.exceptions.util.TextCoder.run(String): String.getBytes() I18N DM_DEFAULT_ENCODING 81 High