PMD Results

The following document contains the results of PMD 4.2.5.

Files

org/apache/myfaces/component/html/ext/AbstractHtmlDataTable.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_SORTABLE'.88
Avoid unused private fields such as 'DEFAULT_EMBEDDED'.89
Avoid unused private fields such as 'DEFAULT_DETAILSTAMP_EXPANDED'.90
Avoid unused private fields such as 'DEFAULT_NEWSPAPER_COLUMNS'.93
Avoid unused private fields such as 'DEFAULT_NEWSPAPER_ORIENTATION'.94
Avoid unused private fields such as 'DEFAULT_DETAILSTAMP_LOCATION'.95
Avoid unnecessary temporaries when converting primitives to Strings1703
These nested if statements could be combined1738 - 1741
Avoid unused private fields such as 'DEFAULT_RENDEREDIFEMPTY'.1752

org/apache/myfaces/component/html/ext/AbstractHtmlSelectManyCheckbox.java

ViolationLine
Avoid unused private methods such as 'booleanFromObject(Object,boolean)'.99

org/apache/myfaces/component/html/ext/HtmlDataTableHack.java

ViolationLine
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.608
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.629
Avoid unused private methods such as 'booleanFromObject(Object,boolean)'.654

org/apache/myfaces/component/html/ext/_SerializableResultSetDataModel.java

ViolationLine
Avoid unused constructor parameters such as 'resultSet'.33 - 36
Avoid unused constructor parameters such as 'first'.33 - 36
Avoid unused constructor parameters such as 'rows'.33 - 36

org/apache/myfaces/component/html/ext/_SubIdConverter.java

ViolationLine
Avoid empty if statements58 - 60
Avoid empty if statements118 - 120

org/apache/myfaces/component/html/util/HtmlComponentUtils.java

ViolationLine
These nested if statements could be combined83 - 97

org/apache/myfaces/component/html/util/StreamingAddResource.java

ViolationLine
Avoid unused private fields such as 'REQUEST_ID_COUNTER'.135
Avoid unused private fields such as 'RESOURCE_VIRTUAL_PATH'.157
Avoid unused method parameters such as 'position'.525 - 543
Avoid unused local variables such as 'manager'.603
These nested if statements could be combined1072 - 1079

org/apache/myfaces/custom/buffer/AbstractBuffer.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.79

org/apache/myfaces/custom/calendar/AbstractHtmlInputCalendar.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.90

org/apache/myfaces/custom/calendar/DefaultDateBusinessConverter.java

ViolationLine
These nested if statements could be combined46 - 49

org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java

ViolationLine
Avoid empty if statements479 - 481
Avoid empty if statements498 - 500

org/apache/myfaces/custom/calendar/HtmlInputCalendarTagHandler.java

ViolationLine
These nested if statements could be combined114 - 120

org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.53

org/apache/myfaces/custom/collapsiblepanel/AbstractHtmlCollapsiblePanel.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.58
Overriding method merely calls super155 - 158
Overriding method merely calls super215 - 218
Overriding method merely calls super262 - 264
Overriding method merely calls super269 - 272
Overriding method merely calls super277 - 280
Overriding method merely calls super285 - 288

org/apache/myfaces/custom/datalist/AbstractHtmlDataList.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.51

org/apache/myfaces/custom/datascroller/AbstractHtmlDataScroller.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.74
Avoid unused private fields such as 'DEFAULT_IMMEDIATE'.75

org/apache/myfaces/custom/datascroller/HtmlDataScrollerRenderer.java

ViolationLine
Avoid empty catch blocks493 - 496

org/apache/myfaces/custom/date/AbstractHtmlInputDate.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.61
Avoid unused method parameters such as 'type'.236 - 241
Overriding method merely calls super433 - 436

org/apache/myfaces/custom/date/HtmlInputDateTagHandler.java

ViolationLine
These nested if statements could be combined115 - 121

org/apache/myfaces/custom/div/AbstractDiv.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.41

org/apache/myfaces/custom/dojo/DojoUtils.java

ViolationLine
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.185
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.186
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.187
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.422
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.423
These nested if statements could be combined552 - 554

org/apache/myfaces/custom/fieldset/AbstractFieldset.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.40

org/apache/myfaces/custom/fileupload/AbstractHtmlInputFileUpload.java

ViolationLine
Overriding method merely calls super122 - 125

org/apache/myfaces/custom/fileupload/HtmlFileUploadRenderer.java

ViolationLine
Avoid unused private fields such as 'log'.59
These nested if statements could be combined75 - 78

org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.59

org/apache/myfaces/custom/jslistener/AbstractJsValueChangeListener.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.53

org/apache/myfaces/custom/jslistener/JsValueChangeListenerRenderer.java

ViolationLine
Avoid unused method parameters such as 'context'.124 - 170
Avoid empty if statements149 - 154

org/apache/myfaces/custom/jsvalueset/AbstractHtmlJsValueSet.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.49
Overriding method merely calls super71 - 74

org/apache/myfaces/custom/layout/AbstractHtmlPanelLayout.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.53
Avoid unused private fields such as 'DEFAULT_BORDER'.55
Avoid unused private fields such as 'DEFAULT_LAYOUT'.56

org/apache/myfaces/custom/navigation/AbstractHtmlCommandNavigation.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.61
These nested if statements could be combined97 - 100

org/apache/myfaces/custom/navigation/AbstractHtmlPanelNavigation.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.63
Avoid unused private fields such as 'DEFAULT_BORDER'.65
Avoid empty if statements90 - 93

org/apache/myfaces/custom/navmenu/AbstractUINavigationMenuItem.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_IMMEDIATE'.57

org/apache/myfaces/custom/navmenu/htmlnavmenu/AbstractHtmlCommandNavigationItem.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.62
These nested if statements could be combined154 - 156

org/apache/myfaces/custom/navmenu/htmlnavmenu/AbstractHtmlPanelNavigationMenu.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.66
Avoid unused private fields such as 'DEFAULT_BORDER'.69
Avoid empty if statements96 - 99

org/apache/myfaces/custom/navmenu/htmlnavmenu/HtmlNavigationMenuRenderer.java

ViolationLine
An empty statement (semicolon) not part of a loop564

org/apache/myfaces/custom/navmenu/jscookmenu/AbstractHtmlCommandJSCookMenu.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.59

org/apache/myfaces/custom/navmenu/jscookmenu/HtmlJSCookMenuRenderer.java

ViolationLine
These nested if statements could be combined229 - 231

org/apache/myfaces/custom/newspaper/AbstractHtmlNewspaperTable.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_NEWSPAPER_COLUMNS'.58

org/apache/myfaces/custom/panelstack/AbstractHtmlPanelStack.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.46

org/apache/myfaces/custom/panelstack/HtmlPanelStackRenderer.java

ViolationLine
These nested if statements could be combined73 - 75

org/apache/myfaces/custom/picklist/HtmlPicklistRenderer.java

ViolationLine
Avoid unused method parameters such as 'uiComponent'.257 - 264
Avoid unused method parameters such as 'facesContext'.378 - 385
Avoid unused method parameters such as 'converter'.378 - 385
Avoid unused method parameters such as 'uiComponent'.378 - 385

org/apache/myfaces/custom/popup/AbstractHtmlPopup.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.49

org/apache/myfaces/custom/popup/HtmlPopupRenderer.java

ViolationLine
Avoid unused private fields such as 'LAYOUT_SPAN'.53
Avoid empty if statements115 - 116

org/apache/myfaces/custom/radio/AbstractHtmlRadio.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.66

org/apache/myfaces/custom/schedule/AbstractHtmlSchedule.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.62

org/apache/myfaces/custom/selectOneLanguage/AbstractSelectOneLanguage.java

ViolationLine
Avoid unused private fields such as '_maxLength'.59
Avoid unused private fields such as '_emptySelection'.61

org/apache/myfaces/custom/stylesheet/AbstractStylesheet.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.43

org/apache/myfaces/custom/subform/AbstractSubForm.java

ViolationLine
These nested if statements could be combined281 - 284

org/apache/myfaces/custom/subform/SubFormRenderer.java

ViolationLine
Invoke equals() on the object you've already ensured is not null78

org/apache/myfaces/custom/swapimage/AbstractHtmlSwapImage.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.44
Avoid unused private fields such as 'DEFAULT_ISMAP'.45

org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTab.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.50
Avoid unused private fields such as 'DEFAULT_DISABLED'.51

org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTabbedPane.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.66
Avoid unused private fields such as 'DEFAULT_SELECTEDINDEX'.67
Avoid unused private fields such as 'DEFAULT_SERVER_SIDE_TAB_SWITCH'.68
Avoid unused private fields such as 'DEFAULT_BORDER'.71
Overriding method merely calls super73 - 76

org/apache/myfaces/custom/toggle/ToggleGroupRenderer.java

ViolationLine
Avoid unused local variables such as 'toggleGroup'.43

org/apache/myfaces/custom/toggle/ToggleLinkRenderer.java

ViolationLine
Avoid unused method parameters such as 'facesContext'.182 - 189

org/apache/myfaces/custom/tree/AbstractHtmlTreeCheckbox.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.56

org/apache/myfaces/custom/tree/AbstractHtmlTreeImageCommandLink.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.39

org/apache/myfaces/custom/tree/HtmlTree.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.75
Avoid empty if statements764 - 767
Overriding method merely calls super774 - 777

org/apache/myfaces/custom/tree/renderkit/html/HtmlTreeCheckboxRenderer.java

ViolationLine
Avoid empty if statements123 - 125

org/apache/myfaces/custom/tree2/AbstractHtmlTree.java

ViolationLine
Avoid unused private fields such as 'DEFAULT_RENDERER_TYPE'.57

org/apache/myfaces/custom/tree2/HtmlTreeRenderer.java

ViolationLine
These nested if statements could be combined116 - 119

org/apache/myfaces/custom/tree2/TreeWalkerBase.java

ViolationLine
These nested if statements could be combined105 - 111

org/apache/myfaces/custom/updateactionlistener/UpdateActionListener.java

ViolationLine
An empty statement (semicolon) not part of a loop181
An empty statement (semicolon) not part of a loop182

org/apache/myfaces/dateformat/SimpleDateFormatter.java

ViolationLine
Avoid empty if statements1084 - 1086

org/apache/myfaces/renderkit/html/ext/HtmlCheckboxRenderer.java

ViolationLine
Avoid empty if statements522 - 524

org/apache/myfaces/renderkit/html/ext/HtmlMessageRenderer.java

ViolationLine
Avoid empty while statements170

org/apache/myfaces/renderkit/html/ext/HtmlRadioRenderer.java

ViolationLine
Avoid empty if statements270 - 272

org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java

ViolationLine
Avoid unused method parameters such as 'facesContext'.312 - 464
These nested if statements could be combined691 - 693
Avoid unnecessary temporaries when converting primitives to Strings704
These nested if statements could be combined722 - 724

org/apache/myfaces/renderkit/html/util/AddResourceFactory.java

ViolationLine
These nested if statements could be combined347 - 350

org/apache/myfaces/renderkit/html/util/DefaultAddResource.java

ViolationLine
These nested if statements could be combined650 - 657

org/apache/myfaces/renderkit/html/util/ExtensionsPhaseListener.java

ViolationLine
These nested if statements could be combined133 - 143

org/apache/myfaces/renderkit/html/util/MyFacesResourceLoader.java

ViolationLine
Avoid empty finally blocks221 - 224

org/apache/myfaces/renderkit/html/util/NonBufferingAddResource.java

ViolationLine
Avoid empty catch blocks557 - 561

org/apache/myfaces/tomahawk/util/ExternalContextUtils.java

ViolationLine
Unnecessary final modifier in final class61 - 80
Unnecessary final modifier in final class89 - 109
Unnecessary final modifier in final class118 - 157
These nested if statements could be combined126 - 153
Unnecessary final modifier in final class171 - 211
These nested if statements could be combined180 - 207

org/apache/myfaces/validator/_ValidatorRule.java

ViolationLine
These nested if statements could be combined63 - 69

org/apache/myfaces/webapp/filter/TomahawkFacesContextWrapper.java

ViolationLine
An empty statement (semicolon) not part of a loop223
Avoid unused local variables such as 'oldResponse'.348

org/apache/myfaces/webapp/filter/WelcomeFileFilter.java

ViolationLine
Avoid unnecessary return statements169