FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.0

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
487 76 0 0

Files

Class Bugs
com.atlassian.renderer.DefaultIconManager 1
com.atlassian.renderer.attachments.RendererAttachment 1
com.atlassian.renderer.embedded.EmbeddedAudio 1
com.atlassian.renderer.embedded.EmbeddedFlash 1
com.atlassian.renderer.embedded.EmbeddedFlashRenderer 1
com.atlassian.renderer.embedded.EmbeddedImage 1
com.atlassian.renderer.embedded.EmbeddedImageRenderer 2
com.atlassian.renderer.embedded.EmbeddedObjectRenderer 3
com.atlassian.renderer.embedded.EmbeddedQuicktime 2
com.atlassian.renderer.embedded.EmbeddedRealMedia 3
com.atlassian.renderer.embedded.EmbeddedRealMediaRenderer 3
com.atlassian.renderer.embedded.EmbeddedWindowsMedia 4
com.atlassian.renderer.embedded.UnembeddableObject 1
com.atlassian.renderer.links.BaseLink 2
com.atlassian.renderer.links.Link 1
com.atlassian.renderer.macro.BaseMacro 1
com.atlassian.renderer.macro.macros.AbstractPanelMacro 1
com.atlassian.renderer.macro.macros.ColorMacro 1
com.atlassian.renderer.macro.macros.PanelMacro 1
com.atlassian.renderer.macro.macros.QuoteMacro 1
com.atlassian.renderer.util.FileTypeUtil 1
com.atlassian.renderer.util.NodeUtil 1
com.atlassian.renderer.util.RegExpUtil 1
com.atlassian.renderer.util.UrlUtil 2
com.atlassian.renderer.v2.Replacer 1
com.atlassian.renderer.v2.WikiMarkupParser 2
com.atlassian.renderer.v2.components.MacroRendererComponent 2
com.atlassian.renderer.v2.components.UrlRendererComponent 4
com.atlassian.renderer.v2.components.phrase.TemplateParamRenderComponent 1
com.atlassian.renderer.v2.components.table.Table 1
com.atlassian.renderer.v2.macro.basic.AbstractPanelMacro 2
com.atlassian.renderer.v2.macro.basic.validator.ColorStyleValidator 1
com.atlassian.renderer.v2.macro.code.CodeMacro 1
com.atlassian.renderer.v2.macro.code.formatter.ActionScriptFormatter 1
com.atlassian.renderer.v2.macro.code.formatter.JavaFormatter 1
com.atlassian.renderer.v2.macro.code.formatter.JavaScriptFormatter 1
com.atlassian.renderer.v2.macro.code.formatter.NoneFormatter 1
com.atlassian.renderer.v2.macro.code.formatter.SqlFormatter 1
com.atlassian.renderer.v2.macro.code.formatter.XmlFormatter 1
com.atlassian.renderer.v2.plugin.PluggableWysiwygConverter 1
com.atlassian.renderer.wysiwyg.HtmlParserUtil 2
com.atlassian.renderer.wysiwyg.Styles 3
com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter 9
com.atlassian.renderer.wysiwyg.converter.FormatConverter 3

com.atlassian.renderer.DefaultIconManager

Bug Category Details Line
com.atlassian.renderer.DefaultIconManager.getEmoticonSymbols() may expose internal representation by returning DefaultIconManager.emoticons MALICIOUS_CODE EI_EXPOSE_REP 103

com.atlassian.renderer.attachments.RendererAttachment

Bug Category Details Line
Confusing to have methods com.atlassian.renderer.attachments.RendererAttachment.getFileName() and com.atlassian.renderer.embedded.EmbeddedResourceParser.getFilename() BAD_PRACTICE NM_CONFUSING 76

com.atlassian.renderer.embedded.EmbeddedAudio

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedAudio.RESOURCE_TYPE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 12

com.atlassian.renderer.embedded.EmbeddedFlash

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedFlash.RESOURCE_TYPE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 15

com.atlassian.renderer.embedded.EmbeddedFlashRenderer

Bug Category Details Line
Class com.atlassian.renderer.embedded.EmbeddedFlashRenderer implements same interface as superclass STYLE RI_REDUNDANT_INTERFACES Not available

com.atlassian.renderer.embedded.EmbeddedImage

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 71

com.atlassian.renderer.embedded.EmbeddedImageRenderer

Bug Category Details Line
Unchecked/unconfirmed cast from com.atlassian.renderer.embedded.EmbeddedResource to com.atlassian.renderer.embedded.EmbeddedImage in com.atlassian.renderer.embedded.EmbeddedImageRenderer.renderResource(EmbeddedResource, RenderContext) STYLE BC_UNCONFIRMED_CAST 75
Method com.atlassian.renderer.embedded.EmbeddedImageRenderer.outputParameters(Map) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 265

com.atlassian.renderer.embedded.EmbeddedObjectRenderer

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedObjectRenderer.validEmbedTags isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 65
com.atlassian.renderer.embedded.EmbeddedObjectRenderer.validObjectTags isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 33
com.atlassian.renderer.embedded.EmbeddedObjectRenderer.validParamTags isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 96

com.atlassian.renderer.embedded.EmbeddedQuicktime

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedQuicktime.FILE_EXT_1 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 13
com.atlassian.renderer.embedded.EmbeddedQuicktime.RESOURCE_TYPE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 12

com.atlassian.renderer.embedded.EmbeddedRealMedia

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedRealMedia.FILE_EXT_1 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 14
com.atlassian.renderer.embedded.EmbeddedRealMedia.FILE_EXT_2 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 15
com.atlassian.renderer.embedded.EmbeddedRealMedia.RESOURCE_TYPE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 12

com.atlassian.renderer.embedded.EmbeddedRealMediaRenderer

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedRealMediaRenderer.DEFAULT_CONTROLS_HEIGHT isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 20
com.atlassian.renderer.embedded.EmbeddedRealMediaRenderer.DEFAULT_HEIGHT isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 18
com.atlassian.renderer.embedded.EmbeddedRealMediaRenderer.DEFAULT_WIDTH isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 17

com.atlassian.renderer.embedded.EmbeddedWindowsMedia

Bug Category Details Line
com.atlassian.renderer.embedded.EmbeddedWindowsMedia.FILE_EXT_1 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 14
com.atlassian.renderer.embedded.EmbeddedWindowsMedia.FILE_EXT_2 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 15
com.atlassian.renderer.embedded.EmbeddedWindowsMedia.FILE_EXT_3 isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 16
com.atlassian.renderer.embedded.EmbeddedWindowsMedia.RESOURCE_TYPE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 12

com.atlassian.renderer.embedded.UnembeddableObject

Bug Category Details Line
com.atlassian.renderer.embedded.UnembeddableObject.UNEMBEDDABLE_TYPES should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 5

com.atlassian.renderer.links.BaseLink

Bug Category Details Line
Comparison of String objects using == or != in com.atlassian.renderer.links.BaseLink.equals(Object) BAD_PRACTICE ES_COMPARING_STRINGS_WITH_EQ 77
com.atlassian.renderer.links.BaseLink.equals(Object) does not check for null argument BAD_PRACTICE NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT 72

com.atlassian.renderer.links.Link

Bug Category Details Line
com.atlassian.renderer.links.Link.equals(Object) does not check for null argument BAD_PRACTICE NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT 128

com.atlassian.renderer.macro.BaseMacro

Bug Category Details Line
Field BaseMacro.description masks field in superclass org.radeox.macro.BaseMacro CORRECTNESS MF_CLASS_MASKS_FIELD Not available

com.atlassian.renderer.macro.macros.AbstractPanelMacro

Bug Category Details Line
com.atlassian.renderer.macro.macros.AbstractPanelMacro.getParamDescription() may expose internal representation by returning AbstractPanelMacro.myParamDescription MALICIOUS_CODE EI_EXPOSE_REP 16

com.atlassian.renderer.macro.macros.ColorMacro

Bug Category Details Line
com.atlassian.renderer.macro.macros.ColorMacro.getParamDescription() may expose internal representation by returning ColorMacro.myParamDescription MALICIOUS_CODE EI_EXPOSE_REP 24

com.atlassian.renderer.macro.macros.PanelMacro

Bug Category Details Line
PanelMacro.wikiStyleRenderer not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

com.atlassian.renderer.macro.macros.QuoteMacro

Bug Category Details Line
QuoteMacro.wikiStyleRenderer not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

com.atlassian.renderer.util.FileTypeUtil

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 26

com.atlassian.renderer.util.NodeUtil

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 63

com.atlassian.renderer.util.RegExpUtil

Bug Category Details Line
Method com.atlassian.renderer.util.RegExpUtil.convertToRegularExpression(String) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 22

com.atlassian.renderer.util.UrlUtil

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 66
Method com.atlassian.renderer.util.UrlUtil.buildNewRelativeUrl(HttpServletRequest, String, String) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 265

com.atlassian.renderer.v2.Replacer

Bug Category Details Line
com.atlassian.renderer.v2.Replacer.Replacer(Pattern, String, String[]) may expose internal representation by storing an externally mutable object into Replacer.necessaryConstantParts MALICIOUS_CODE EI_EXPOSE_REP2 28

com.atlassian.renderer.v2.WikiMarkupParser

Bug Category Details Line
Dead store to lastStart in com.atlassian.renderer.v2.WikiMarkupParser.parse(String) STYLE DLS_DEAD_LOCAL_STORE 56
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 130

com.atlassian.renderer.v2.components.MacroRendererComponent

Bug Category Details Line
Unchecked/unconfirmed cast from java.lang.Throwable to java.lang.RuntimeException in com.atlassian.renderer.v2.components.MacroRendererComponent.processMacro(String, Macro, String, Map, RenderContext, StringBuffer) STYLE BC_UNCONFIRMED_CAST 181
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 97

com.atlassian.renderer.v2.components.UrlRendererComponent

Bug Category Details Line
com.atlassian.renderer.v2.components.UrlRendererComponent.INVALID_END_CHARS should be package protected MALICIOUS_CODE MS_PKGPROTECT 24
com.atlassian.renderer.v2.components.UrlRendererComponent.PURE_URL_PATTERN isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 23
com.atlassian.renderer.v2.components.UrlRendererComponent.URL_PATTERN isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 22
Method com.atlassian.renderer.v2.components.UrlRendererComponent.<static initializer>() concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 37

com.atlassian.renderer.v2.components.phrase.TemplateParamRenderComponent

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 51

com.atlassian.renderer.v2.components.table.Table

Bug Category Details Line
Method com.atlassian.renderer.v2.components.table.Table.createTable(String) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 70

com.atlassian.renderer.v2.macro.basic.AbstractPanelMacro

Bug Category Details Line
AbstractPanelMacro.subRenderer not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available
Method com.atlassian.renderer.v2.macro.basic.AbstractPanelMacro.handleExplicitStyles(StringBuffer, Map) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 120

com.atlassian.renderer.v2.macro.basic.validator.ColorStyleValidator

Bug Category Details Line
Private method com.atlassian.renderer.v2.macro.basic.validator.ColorStyleValidator.createColorValues() is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 57-75

com.atlassian.renderer.v2.macro.code.CodeMacro

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 61

com.atlassian.renderer.v2.macro.code.formatter.ActionScriptFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.ActionScriptFormatter.getSupportedLanguages() may expose internal representation by returning ActionScriptFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 32

com.atlassian.renderer.v2.macro.code.formatter.JavaFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.JavaFormatter.getSupportedLanguages() may expose internal representation by returning JavaFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 34

com.atlassian.renderer.v2.macro.code.formatter.JavaScriptFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.JavaScriptFormatter.getSupportedLanguages() may expose internal representation by returning JavaScriptFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 29

com.atlassian.renderer.v2.macro.code.formatter.NoneFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.NoneFormatter.getSupportedLanguages() may expose internal representation by returning NoneFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 22

com.atlassian.renderer.v2.macro.code.formatter.SqlFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.SqlFormatter.getSupportedLanguages() may expose internal representation by returning SqlFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 22

com.atlassian.renderer.v2.macro.code.formatter.XmlFormatter

Bug Category Details Line
com.atlassian.renderer.v2.macro.code.formatter.XmlFormatter.getSupportedLanguages() may expose internal representation by returning XmlFormatter.SUPPORTED_LANGUAGES MALICIOUS_CODE EI_EXPOSE_REP 27

com.atlassian.renderer.v2.plugin.PluggableWysiwygConverter

Bug Category Details Line
PluggableWysiwygConverter.rendererComponentsAccessor not initialized in constructor STYLE UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR Not available

com.atlassian.renderer.wysiwyg.HtmlParserUtil

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 69
Method com.atlassian.renderer.wysiwyg.HtmlParserUtil.HtmlParserUtil(InputStream) directly allocates a specific implementation of xml interfaces STYLE XFB_XML_FACTORY_BYPASS 47

com.atlassian.renderer.wysiwyg.Styles

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 48
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 114
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 81

com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 259
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 628
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 135
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 550
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 179
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 494
com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter.debug isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 56
Unread field: com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter.log PERFORMANCE URF_UNREAD_FIELD 53
Method com.atlassian.renderer.wysiwyg.converter.DefaultWysiwygConverter.convertXHtmlToWikiMarkup(String) directly allocates a specific implementation of xml interfaces STYLE XFB_XML_FACTORY_BYPASS 676

com.atlassian.renderer.wysiwyg.converter.FormatConverter

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 37
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 42
com.atlassian.renderer.wysiwyg.converter.FormatConverter.INSTANCE isn't final but should be MALICIOUS_CODE MS_SHOULD_BE_FINAL 12