FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
14 30 200 37

org.apache.myfaces.tobago.apt.generate.ClassUtils

Bug Category Details Line Priority
Use of non-localized String.toUpperCase() or String.toLowerCase() in org.apache.myfaces.tobago.apt.generate.ClassUtils.getSmallSimpleName(String) I18N DM_CONVERT_CASE 63 Low

org.apache.myfaces.tobago.apt.generate.ComponentPropertyInfo

Bug Category Details Line Priority
org.apache.myfaces.tobago.apt.generate.ComponentPropertyInfo doesn't override PropertyInfo.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium

org.apache.myfaces.tobago.apt.generate.PropertyInfo

Bug Category Details Line Priority
org.apache.myfaces.tobago.apt.generate.PropertyInfo.getAllowedValues() may expose internal representation by returning PropertyInfo.allowedValues MALICIOUS_CODE EI_EXPOSE_REP 132 Medium
org.apache.myfaces.tobago.apt.generate.PropertyInfo.getMethodSignature() may expose internal representation by returning PropertyInfo.methodSignature MALICIOUS_CODE EI_EXPOSE_REP 140 Medium
org.apache.myfaces.tobago.apt.generate.PropertyInfo.setAllowedValues(String[]) may expose internal representation by storing an externally mutable object into PropertyInfo.allowedValues MALICIOUS_CODE EI_EXPOSE_REP2 136 Medium
org.apache.myfaces.tobago.apt.generate.PropertyInfo.setMethodSignature(String[]) may expose internal representation by storing an externally mutable object into PropertyInfo.methodSignature MALICIOUS_CODE EI_EXPOSE_REP2 144 Medium
PropertyInfo.type not initialized in constructor and dereferenced in org.apache.myfaces.tobago.apt.generate.PropertyInfo.getShortType() STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 107 Low
PropertyInfo.type not initialized in constructor and dereferenced in org.apache.myfaces.tobago.apt.generate.PropertyInfo.getType() STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR 83 Low

org.apache.myfaces.tobago.apt.generate.RendererInfo

Bug Category Details Line Priority
org.apache.myfaces.tobago.apt.generate.RendererInfo.getRendererType() may expose internal representation by returning RendererInfo.rendererTypes MALICIOUS_CODE EI_EXPOSE_REP 35 Medium
new org.apache.myfaces.tobago.apt.generate.RendererInfo(String, String, String[]) may expose internal representation by storing an externally mutable object into RendererInfo.rendererTypes MALICIOUS_CODE EI_EXPOSE_REP2 31 Medium

org.apache.myfaces.tobago.apt.processor.CheckstyleConfigGenerator

Bug Category Details Line Priority
Useless control flow in org.apache.myfaces.tobago.apt.processor.CheckstyleConfigGenerator.addLib(Taglib, Element, Document) STYLE UCF_USELESS_CONTROL_FLOW 289 Low
Method org.apache.myfaces.tobago.apt.processor.CheckstyleConfigGenerator.configure() seems to be useless STYLE UC_USELESS_VOID_METHOD 87 High
Unread field: org.apache.myfaces.tobago.apt.processor.CheckstyleConfigGenerator.tagSet PERFORMANCE URF_UNREAD_FIELD 75 Medium
Unused field: org.apache.myfaces.tobago.apt.processor.CheckstyleConfigGenerator.targetCheckstyle PERFORMANCE UUF_UNUSED_FIELD Not available Medium

org.apache.myfaces.tobago.apt.processor.ClassesGenerator

Bug Category Details Line Priority
Use of non-localized String.toUpperCase() or String.toLowerCase() in org.apache.myfaces.tobago.apt.processor.ClassesGenerator.createTagOrComponent(TypeElement) I18N DM_CONVERT_CASE 110 Low
Found reliance on default encoding in org.apache.myfaces.tobago.apt.processor.ClassesGenerator.configure(): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 79 High
Method org.apache.myfaces.tobago.apt.processor.ClassesGenerator.writeFile(ClassInfo, StringTemplate) seems to be useless STYLE UC_USELESS_VOID_METHOD 307 High

org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator

Bug Category Details Line Priority
Method org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.addAttributes(TypeElement, List, List, Namespace) seems to be useless STYLE UC_USELESS_VOID_METHOD 561 High
Method org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.addDescription(ExecutableElement, Element, Namespace) seems to be useless STYLE UC_USELESS_VOID_METHOD 505 High
Method org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.configure() seems to be useless STYLE UC_USELESS_VOID_METHOD 150 High
Unused field: org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.IGNORED_PROPERTIES PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.SEPARATOR PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.sourceFacesConfigFile PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: org.apache.myfaces.tobago.apt.processor.FacesConfigGenerator.targetFacesConfigFile PERFORMANCE UUF_UNUSED_FIELD Not available Medium

org.apache.myfaces.tobago.apt.processor.TaglibGenerator

Bug Category Details Line Priority
Method org.apache.myfaces.tobago.apt.processor.TaglibGenerator.configure() seems to be useless STYLE UC_USELESS_VOID_METHOD 94 High
Private method org.apache.myfaces.tobago.apt.processor.TaglibGenerator.getInterfaceDeclaration(String) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 323-328 Low
Unread field: org.apache.myfaces.tobago.apt.processor.TaglibGenerator.attributeSet PERFORMANCE URF_UNREAD_FIELD 81 Medium
Unread field: org.apache.myfaces.tobago.apt.processor.TaglibGenerator.tagSet PERFORMANCE URF_UNREAD_FIELD 80 Medium
Unused field: org.apache.myfaces.tobago.apt.processor.TaglibGenerator.currentTag PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: org.apache.myfaces.tobago.apt.processor.TaglibGenerator.targetTaglib PERFORMANCE UUF_UNUSED_FIELD Not available Medium