The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is max
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 | 153 | High |
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 |
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 | 158 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unused public or protected field: com.helger.jcodemodel.JDefinedClass.metadata | STYLE | UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD | Not available | Medium |
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 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.helger.jcodemodel.JFieldVar doesn't override JVar.equals(Object) | STYLE | EQ_DOESNT_OVERRIDE_EQUALS | 1 | Medium |
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 | 567-582 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.helger.jcodemodel.JPackage defines compareTo(JPackage) and uses Object.equals() | BAD_PRACTICE | EQ_COMPARETO_USE_OBJECT_EQUALS | 239 | Medium |
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 | 137 | High |
Found reliance on default encoding in com.helger.jcodemodel.fmt.JStaticJavaFile.build(OutputStream): new java.io.OutputStreamWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 138 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in com.helger.jcodemodel.fmt.JTextFile.build(OutputStream): new java.io.OutputStreamWriter(OutputStream) | I18N | DM_DEFAULT_ENCODING | 83 | High |
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 | 136 | 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 | 116 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new com.helger.jcodemodel.writer.OutputStreamCodeWriter(OutputStream, Charset): new java.io.PrintStream(OutputStream, boolean) | I18N | DM_DEFAULT_ENCODING | 79 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
com.helger.jcodemodel.writer.PrologCodeWriter.openSource(JPackage, String) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 86 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in new com.helger.jcodemodel.writer.SingleStreamCodeWriter(OutputStream): new java.io.PrintStream(OutputStream) | I18N | DM_DEFAULT_ENCODING | 72 | High |