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
155 16 0 0

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 75-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.JPackage

Bug Category Details Line Priority
com.helger.jcodemodel.JPackage defines compareTo(JPackage) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 213 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 139 High
Found reliance on default encoding in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 140 High
Exception is caught when Exception is not thrown in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream) STYLE REC_CATCH_EXCEPTION 151 Medium

com.helger.jcodemodel.writer.AbstractCodeWriter

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

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 152 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 133 Medium

com.helger.jcodemodel.writer.JFormatter

Bug Category Details Line Priority
Switch statement found in com.helger.jcodemodel.writer.JFormatter.id(String) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 590-605 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 93 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 87 High