FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is max

Summary

Classes Bugs Errors Missing Classes
153 16 0 0

com.helger.jcodemodel.AbstractCodeWriter

Bug Category Details Line Priority
Found reliance on default encoding in com.helger.jcodemodel.AbstractCodeWriter.openSource(JPackage, String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 188 High

com.helger.jcodemodel.AbstractJAnnotationValueOwned$FullClassNameExpr

Bug Category Details Line Priority
Should com.helger.jcodemodel.AbstractJAnnotationValueOwned$FullClassNameExpr be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 76-83 Medium

com.helger.jcodemodel.AbstractJClassContainer

Bug Category Details Line Priority
Method com.helger.jcodemodel.AbstractJClassContainer.name() overrides the return value nullness annotation in an incompatible way. STYLE NP_METHOD_RETURN_RELAXING_ANNOTATION 161 High

com.helger.jcodemodel.JDocComment

Bug Category Details Line Priority
Class com.helger.jcodemodel.JDocComment defines non-transient non-serializable instance field m_aAtThrows BAD_PRACTICE SE_BAD_FIELD Not available Medium
Class com.helger.jcodemodel.JDocComment defines non-transient non-serializable instance field m_aOwner BAD_PRACTICE SE_BAD_FIELD Not available Medium

com.helger.jcodemodel.JErrorClass

Bug Category Details Line Priority
Method com.helger.jcodemodel.JErrorClass.name() overrides the return value nullness annotation in an incompatible way. STYLE NP_METHOD_RETURN_RELAXING_ANNOTATION 93 High

com.helger.jcodemodel.JFieldVar

Bug Category Details Line Priority
com.helger.jcodemodel.JFieldVar doesn't override JVar.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

com.helger.jcodemodel.JFormatter

Bug Category Details Line Priority
Switch statement found in com.helger.jcodemodel.JFormatter.id(String) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 697-712 Medium

com.helger.jcodemodel.JPackage

Bug Category Details Line Priority
com.helger.jcodemodel.JPackage defines compareTo(JPackage) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 216 Medium

com.helger.jcodemodel.fmt.JStaticJavaFile

Bug Category Details Line Priority
Found reliance on default encoding in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 140 High
Found reliance on default encoding in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 141 High
Exception is caught when Exception is not thrown in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream) STYLE REC_CATCH_EXCEPTION 152 Medium

com.helger.jcodemodel.writer.FileCodeWriter

Bug Category Details Line Priority
Exceptional return value of java.io.File.setReadOnly() ignored in com.helger.jcodemodel.writer.FileCodeWriter.close() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 153 Medium
Exceptional return value of java.io.File.mkdirs() ignored in com.helger.jcodemodel.writer.FileCodeWriter.getFile(JPackage, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 134 Medium

com.helger.jcodemodel.writer.OutputStreamCodeWriter

Bug Category Details Line Priority
Found reliance on default encoding in new com.helger.jcodemodel.writer.OutputStreamCodeWriter(OutputStream, Charset, String): new java.io.PrintStream(OutputStream, boolean) I18N DM_DEFAULT_ENCODING 94 High

com.helger.jcodemodel.writer.SingleStreamCodeWriter

Bug Category Details Line Priority
Found reliance on default encoding in new com.helger.jcodemodel.writer.SingleStreamCodeWriter(OutputStream, String): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 88 High