UI-Component Sets

PMD Results

The following document contains the results of PMD 4.2.5.

Files

org/apache/myfaces/application/ActionListenerImpl.java

Violation Line
These nested if statements could be combined 110 - 124

org/apache/myfaces/application/ApplicationImpl.java

Violation Line
Avoid unused private fields such as 'PROJECT_STAGE_PARAM_NAME'. 151
Avoid empty catch blocks 813 - 816
Avoid empty catch blocks 817 - 826

org/apache/myfaces/application/NavigationHandlerImpl.java

Violation Line
Avoid empty catch blocks 1080 - 1086

org/apache/myfaces/application/ResourceHandlerImpl.java

Violation Line
Avoid empty catch blocks 733 - 736

org/apache/myfaces/application/viewstate/RandomKeyFactory.java

Violation Line
Avoid empty catch blocks 101 - 105

org/apache/myfaces/application/viewstate/SecureRandomKeyFactory.java

Violation Line
Avoid empty catch blocks 123 - 127

org/apache/myfaces/application/viewstate/SerializedViewCollection.java

Violation Line
These nested if statements could be combined 97 - 112
Avoid empty while statements 133 - 135
Avoid empty while statements 158 - 160

org/apache/myfaces/application/viewstate/ServerSideStateCacheImpl.java

Violation Line
These nested if statements could be combined 365 - 374
These nested if statements could be combined 422 - 428

org/apache/myfaces/application/viewstate/SessionIdGenerator.java

Violation Line
These nested if statements could be combined 277 - 281

org/apache/myfaces/cdi/impl/CDIManagedBeanHandlerImpl.java

Violation Line
These nested if statements could be combined 109 - 119
These nested if statements could be combined 141 - 144

org/apache/myfaces/cdi/util/AbstractContext.java

Violation Line
These nested if statements could be combined 93 - 97

org/apache/myfaces/config/ConfigFilesXmlValidationUtils.java

Violation Line
These nested if statements could be combined 167 - 171
Avoid empty catch blocks 278 - 281
Avoid empty catch blocks 287 - 290
Avoid empty catch blocks 301 - 303
Avoid empty catch blocks 452 - 455
Avoid empty catch blocks 460 - 463
Avoid empty catch blocks 474 - 476

org/apache/myfaces/config/DefaultFacesConfigurationMerger.java

Violation Line
These nested if statements could be combined 143 - 148
These nested if statements could be combined 205 - 211

org/apache/myfaces/config/DefaultFacesConfigurationProvider.java

Violation Line
Avoid empty catch blocks 619 - 621
Avoid empty catch blocks 645 - 647
Avoid empty catch blocks 763 - 766

org/apache/myfaces/config/FacesConfigurator.java

Violation Line
Avoid empty catch blocks 344 - 347

org/apache/myfaces/config/annotation/AnnotationConfigurator.java

Violation Line
These nested if statements could be combined 446 - 450
These nested if statements could be combined 478 - 483

org/apache/myfaces/config/annotation/DefaultAnnotationProvider.java

Violation Line
Avoid empty catch blocks 497 - 500
Avoid empty catch blocks 512 - 515
Avoid empty catch blocks 516 - 519
Avoid empty catch blocks 635 - 638
Avoid empty catch blocks 654 - 657
Avoid empty catch blocks 658 - 661

org/apache/myfaces/config/annotation/DefaultLifecycleProviderFactory.java

Violation Line
Avoid empty catch blocks 218 - 221
Avoid empty catch blocks 222 - 225

org/apache/myfaces/config/annotation/Tomcat7AnnotationLifecycleProvider.java

Violation Line
Avoid unused constructor parameters such as 'externalContext'. 46 - 49
Avoid empty catch blocks 111 - 114

org/apache/myfaces/config/annotation/TomcatAnnotationLifecycleProvider.java

Violation Line
Avoid empty catch blocks 79 - 82

org/apache/myfaces/config/annotation/_ClassByteCodeAnnotationFilter.java

Violation Line
Avoid unused local variables such as 'minorVersion'. 102

org/apache/myfaces/config/impl/digester/DigesterFacesConfigUnmarshallerImpl.java

Violation Line
Avoid unused method parameters such as 'externalContext'. 348 - 369
Avoid unused method parameters such as 'systemId'. 461 - 493

org/apache/myfaces/config/util/Vertex.java

Violation Line
Avoid unused private fields such as 'm_seen'. 41

org/apache/myfaces/context/FacesContextFactoryImpl.java

Violation Line
These nested if statements could be combined 89 - 93

org/apache/myfaces/context/PartialResponseWriterImpl.java

Violation Line
Overriding method merely calls super 351 - 354

org/apache/myfaces/context/RequestViewContext.java

Violation Line
Avoid unused constructor parameters such as 'rvm'. 63 - 66

org/apache/myfaces/context/RequestViewMetadata.java

Violation Line
These nested if statements could be combined 82 - 85
These nested if statements could be combined 107 - 110

org/apache/myfaces/context/servlet/FacesContextImplBase.java

Violation Line
These nested if statements could be combined 282 - 290

org/apache/myfaces/context/servlet/PartialViewContextImpl.java

Violation Line
Avoid unused private fields such as 'JAVAX_FACES_REQUEST'. 68

org/apache/myfaces/context/servlet/ServletExternalContextImpl.java

Violation Line
These nested if statements could be combined 828 - 844

org/apache/myfaces/el/unified/ResolverBuilderForFaces.java

Violation Line
Avoid empty catch blocks 66 - 69
Avoid empty catch blocks 70 - 73
Avoid empty catch blocks 74 - 77
Avoid empty catch blocks 120 - 122
Avoid empty catch blocks 123 - 125
Avoid empty catch blocks 126 - 128
Avoid empty catch blocks 129 - 131

org/apache/myfaces/el/unified/resolver/CompositeComponentELResolver.java

Violation Line
These nested if statements could be combined 105 - 115
These nested if statements could be combined 120 - 124

org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java

Violation Line
These nested if statements could be combined 192 - 195
These nested if statements could be combined 212 - 215

org/apache/myfaces/flow/FlowHandlerImpl.java

Violation Line
Avoid empty if statements 134 - 136
Avoid unused method parameters such as 'flow'. 340 - 356

org/apache/myfaces/flow/builder/NavigationCaseBuilderImpl.java

Violation Line
Avoid unused private fields such as '_flowBuilder'. 37

org/apache/myfaces/flow/builder/SwitchCaseBuilderImpl.java

Violation Line
Avoid unused private fields such as '_facesFlow'. 36
Avoid unused private fields such as '_switchBuilderImpl'. 37

org/apache/myfaces/lifecycle/CODIClientSideWindow.java

Violation Line
These nested if statements could be combined 124 - 127
Avoid empty catch blocks 274 - 277
Avoid unused local variables such as 'existingParameters'. 334
Avoid unused local variables such as 'urlContainsWindowId'. 335

org/apache/myfaces/lifecycle/DefaultRestoreViewSupport.java

Violation Line
Avoid empty catch blocks 567 - 570

org/apache/myfaces/lifecycle/RestoreViewExecutor.java

Violation Line
Avoid empty if statements 408 - 410
Avoid empty if statements 467 - 469

org/apache/myfaces/logging/MyfacesLogger.java

Violation Line
Avoid empty catch blocks 1812 - 1815

org/apache/myfaces/renderkit/ErrorPageWriter.java

Violation Line
Avoid empty catch blocks 289 - 292
These nested if statements could be combined 831 - 838
Avoid empty catch blocks 1005 - 1008
These nested if statements could be combined 1198 - 1207
Avoid empty catch blocks 1332 - 1335
Avoid empty catch blocks 1352 - 1355

org/apache/myfaces/renderkit/RenderKitFactoryImpl.java

Violation Line
These nested if statements could be combined 67 - 70

org/apache/myfaces/renderkit/html/HtmlRenderKitImpl.java

Violation Line
Avoid unused private methods such as 'checkNull(Object,String)'. 405

org/apache/myfaces/renderkit/html/HtmlResponseStateManager.java

Violation Line
Avoid unused private fields such as 'log'. 48

org/apache/myfaces/resource/TempDirFileCacheContractResourceLoader.java

Violation Line
Overriding method merely calls super 173 - 176
Avoid empty catch blocks 249 - 252

org/apache/myfaces/resource/TempDirFileCacheResourceLoader.java

Violation Line
Overriding method merely calls super 213 - 216
Avoid empty catch blocks 305 - 308

org/apache/myfaces/shared_impl/webapp/webxml/FilterMapping.java

Violation Line
These nested if statements could be combined 41 - 44

org/apache/myfaces/shared_impl/webapp/webxml/WebXmlParser.java

Violation Line
Avoid empty if statements 263 - 265
Avoid empty if statements 345 - 347
Avoid empty if statements 388 - 390

org/apache/myfaces/spi/impl/CDIAnnotationDelegateInjectionProvider.java

Violation Line
Avoid empty catch blocks 46 - 49

org/apache/myfaces/spi/impl/DefaultAnnotationProviderFactory.java

Violation Line
Avoid empty catch blocks 96 - 99
Avoid empty catch blocks 100 - 103

org/apache/myfaces/spi/impl/DefaultFaceletConfigResourceProviderFactory.java

Violation Line
Avoid empty catch blocks 82 - 85
Avoid empty catch blocks 86 - 89

org/apache/myfaces/spi/impl/DefaultFacesConfigResourceProviderFactory.java

Violation Line
Avoid empty catch blocks 81 - 84
Avoid empty catch blocks 85 - 88

org/apache/myfaces/spi/impl/DefaultFacesConfigurationMergerFactory.java

Violation Line
Avoid empty catch blocks 81 - 84
Avoid empty catch blocks 85 - 88

org/apache/myfaces/spi/impl/DefaultFacesConfigurationProviderFactory.java

Violation Line
Avoid empty catch blocks 90 - 93
Avoid empty catch blocks 94 - 97

org/apache/myfaces/spi/impl/DefaultInjectionProviderFactory.java

Violation Line
Avoid empty catch blocks 222 - 225
Avoid empty catch blocks 226 - 229
Avoid unused method parameters such as 'externalContext'. 269 - 328

org/apache/myfaces/spi/impl/DefaultResourceLibraryContractsProviderFactory.java

Violation Line
Avoid empty catch blocks 83 - 86
Avoid empty catch blocks 87 - 90

org/apache/myfaces/spi/impl/DefaultServiceProviderFinder.java

Violation Line
Avoid empty catch blocks 156 - 159

org/apache/myfaces/spi/impl/DefaultWebConfigProviderFactory.java

Violation Line
Avoid empty catch blocks 85 - 88
Avoid empty catch blocks 89 - 92

org/apache/myfaces/spi/impl/Tomcat7AnnotationInjectionProvider.java

Violation Line
Avoid unused constructor parameters such as 'externalContext'. 43 - 46
Avoid empty catch blocks 158 - 161

org/apache/myfaces/spi/impl/TomcatAnnotationInjectionProvider.java

Violation Line
Avoid empty catch blocks 96 - 99

org/apache/myfaces/taglib/core/AttributeTag.java

Violation Line
These nested if statements could be combined 123 - 133

org/apache/myfaces/taglib/core/DelegateValueChangeListener.java

Violation Line
Avoid empty catch blocks 111 - 115
Avoid empty catch blocks 139 - 143

org/apache/myfaces/taglib/core/GenericMinMaxValidatorTag.java

Violation Line
These nested if statements could be combined 84 - 87

org/apache/myfaces/taglib/core/ValidateRequiredTag.java

Violation Line
These nested if statements could be combined 90 - 93

org/apache/myfaces/util/CDataEndEscapeFilterWriter.java

Violation Line
These nested if statements could be combined 50 - 54

org/apache/myfaces/util/ContainerUtils.java

Violation Line
Avoid empty catch blocks 58 - 61

org/apache/myfaces/util/DebugUtils.java

Violation Line
Avoid empty if statements 219 - 221

org/apache/myfaces/view/ViewDeclarationLanguageFactoryImpl.java

Violation Line
These nested if statements could be combined 153 - 158

org/apache/myfaces/view/facelets/DefaultFaceletsStateManagementStrategy.java

Violation Line
Avoid unused private fields such as '_config'. 188

org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java

Violation Line
Avoid unused private fields such as '_config'. 292
Avoid empty if statements 362 - 364
These nested if statements could be combined 599 - 602
These nested if statements could be combined 1153 - 1158
Avoid unused method parameters such as 'attributeName'. 1429 - 1457
Avoid unused method parameters such as 'targetAttributeName'. 1429 - 1457
Avoid unused method parameters such as 'mctx'. 1429 - 1457
Avoid unused method parameters such as 'topLevelComponent'. 1429 - 1457
Avoid unused method parameters such as 'attributeName'. 1459 - 1507
Avoid unused method parameters such as 'topLevelComponent'. 1459 - 1507
Avoid unused method parameters such as 'attributeName'. 1509 - 1551
Avoid unused method parameters such as 'topLevelComponent'. 1509 - 1551
Avoid unused method parameters such as 'attributeName'. 1553 - 1602
Avoid unused method parameters such as 'topLevelComponent'. 1553 - 1602
Avoid unused local variables such as 'state'. 1987

org/apache/myfaces/view/facelets/ViewPoolProcessor.java

Violation Line
These nested if statements could be combined 548 - 558
Avoid empty if statements 584 - 587
Avoid unused local variables such as 'state'. 993

org/apache/myfaces/view/facelets/compiler/Compiler.java

Violation Line
Avoid empty catch blocks 162 - 165

org/apache/myfaces/view/facelets/compiler/SAXCompiler.java

Violation Line
These nested if statements could be combined 584 - 590
These nested if statements could be combined 699 - 705

org/apache/myfaces/view/facelets/compiler/TagLibraryConfigUnmarshallerImpl.java

Violation Line
Avoid empty if statements 196 - 198
Avoid empty if statements 238 - 240
Avoid empty if statements 242 - 244
Avoid empty if statements 246 - 248

org/apache/myfaces/view/facelets/compiler/TextUnit.java

Violation Line
Unnecessary final modifier in final class 438 - 462
Unnecessary final modifier in final class 464 - 550
These nested if statements could be combined 481 - 484
Unnecessary final modifier in final class 561 - 712
These nested if statements could be combined 614 - 617
Avoid unused private methods such as 'getFirstTextCharLocationIgnoringSpacesTabsAndCarriageReturn(String)'. 714

org/apache/myfaces/view/facelets/el/ContextAwareTagMethodExpression.java

Violation Line
Avoid empty catch blocks 125 - 128

org/apache/myfaces/view/facelets/el/ContextAwareTagValueExpression.java

Violation Line
Avoid empty catch blocks 120 - 123

org/apache/myfaces/view/facelets/el/DefaultVariableMapper.java

Violation Line
These nested if statements could be combined 85 - 104
These nested if statements could be combined 130 - 133

org/apache/myfaces/view/facelets/el/ELText.java

Violation Line
These nested if statements could be combined 508 - 531
These nested if statements could be combined 510 - 530
These nested if statements could be combined 593 - 616
These nested if statements could be combined 595 - 615
These nested if statements could be combined 668 - 676
These nested if statements could be combined 670 - 675

org/apache/myfaces/view/facelets/impl/DefaultFacelet.java

Violation Line
Avoid empty if statements 469 - 472

org/apache/myfaces/view/facelets/impl/DefaultFaceletFactory.java

Violation Line
Avoid empty if statements 230 - 233
Avoid empty if statements 477 - 480
Avoid empty if statements 531 - 534

org/apache/myfaces/view/facelets/impl/FaceletCompositionContextImpl.java

Violation Line
These nested if statements could be combined 881 - 892

org/apache/myfaces/view/facelets/pool/impl/ViewPoolImpl.java

Violation Line
Avoid empty catch blocks 316 - 319

org/apache/myfaces/view/facelets/tag/LegacyUserTagHandler.java

Violation Line
Avoid unused local variables such as 'actx'. 155
Avoid empty finally blocks 161 - 164
Avoid unused local variables such as 'actx'. 174
Avoid empty finally blocks 180 - 183

org/apache/myfaces/view/facelets/tag/composite/AttributeHandler.java

Violation Line
Avoid empty catch blocks 340 - 343

org/apache/myfaces/view/facelets/tag/composite/CompositeComponentDefinitionTagHandler.java

Violation Line
These nested if statements could be combined 125 - 129

org/apache/myfaces/view/facelets/tag/composite/CompositeComponentResourceTagHandler.java

Violation Line
Avoid empty if statements 185 - 187
These nested if statements could be combined 595 - 662
These nested if statements could be combined 792 - 799

org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java

Violation Line
These nested if statements could be combined 196 - 200
These nested if statements could be combined 209 - 227
These nested if statements could be combined 243 - 273

org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java

Violation Line
Avoid empty catch blocks 808 - 810
Avoid empty catch blocks 811 - 813
Avoid empty catch blocks 814 - 816

org/apache/myfaces/view/facelets/tag/jsf/ComponentTagHandlerDelegate.java

Violation Line
These nested if statements could be combined 806 - 810
These nested if statements could be combined 818 - 827

org/apache/myfaces/view/facelets/tag/jsf/core/SelectItemsHandler.java

Violation Line
Avoid unused private methods such as 'getNoSelectionValue()'. 53

org/apache/myfaces/view/facelets/tag/jstl/core/ChooseHandler.java

Violation Line
These nested if statements could be combined 107 - 145
These nested if statements could be combined 159 - 165
These nested if statements could be combined 179 - 185

org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java

Violation Line
Avoid unused method parameters such as 'i'. 714 - 730

org/apache/myfaces/view/facelets/tag/jstl/core/LegacyForEachHandler.java

Violation Line
Unnecessary final modifier in final class 329 - 336
Unnecessary final modifier in final class 338 - 345
Unnecessary final modifier in final class 347 - 354
Unnecessary final modifier in final class 356 - 363
Unnecessary final modifier in final class 365 - 372
Unnecessary final modifier in final class 374 - 389
Unnecessary final modifier in final class 391 - 398
Unnecessary final modifier in final class 400 - 407
Unnecessary final modifier in final class 409 - 432

org/apache/myfaces/view/facelets/tag/jstl/core/SetHandler.java

Violation Line
These nested if statements could be combined 161 - 164

org/apache/myfaces/view/facelets/tag/jstl/fn/JstlFunction.java

Violation Line
Avoid empty if statements 109 - 111

org/apache/myfaces/view/facelets/tag/ui/LegacyIncludeHandler.java

Violation Line
Avoid unused local variables such as 'actx'. 116
Avoid empty if statements 215 - 217

org/apache/myfaces/view/facelets/tag/ui/ParamHandler.java

Violation Line
These nested if statements could be combined 102 - 106
These nested if statements could be combined 137 - 141

org/apache/myfaces/view/facelets/tag/ui/RepeatHandler.java

Violation Line
Avoid empty catch blocks 91 - 94

org/apache/myfaces/view/facelets/util/Classpath.java

Violation Line
Avoid empty catch blocks 218 - 220
Avoid empty catch blocks 351 - 354
Avoid empty catch blocks 381 - 385

org/apache/myfaces/view/facelets/util/Resource.java

Violation Line
These nested if statements could be combined 78 - 81
Avoid empty catch blocks 107 - 111

org/apache/myfaces/webapp/AbstractFacesInitializer.java

Violation Line
Avoid unused method parameters such as 'servletContext'. 326 - 331
Avoid empty catch blocks 581 - 584
Avoid empty catch blocks 594 - 597
Avoid empty catch blocks 598 - 603
Avoid empty catch blocks 613 - 616
Avoid empty catch blocks 617 - 622

org/apache/myfaces/webapp/Jsp21FacesInitializer.java

Violation Line
Avoid empty catch blocks 90 - 93

org/apache/myfaces/webapp/StartupServletContextListener.java

Violation Line
Avoid empty catch blocks 229 - 232
These nested if statements could be combined 305 - 308