PMD Results

The following document contains the results of PMD 4.2.5.

Files

info/magnolia/cms/beans/config/ConfigLoader.java

ViolationLine
Avoid unused constructor parameters such as 'context'.82 - 104

info/magnolia/cms/beans/config/ObservedManager.java

ViolationLine
Avoid unnecessary return statements130

info/magnolia/cms/beans/runtime/File.java

ViolationLine
Avoid empty catch blocks165 - 167

info/magnolia/cms/core/AbstractContent.java

ViolationLine
Avoid empty catch blocks407 - 409

info/magnolia/cms/core/AbstractNodeData.java

ViolationLine
Avoid empty catch blocks129 - 131
Avoid empty catch blocks200 - 202

info/magnolia/cms/core/BinaryNodeData.java

ViolationLine
These nested if statements could be combined75 - 82

info/magnolia/cms/core/DefaultACLBasedPermissions.java

ViolationLine
Avoid unused constructor parameters such as 'configuration'.107 - 112

info/magnolia/cms/core/DefaultContent.java

ViolationLine
Avoid empty catch blocks310 - 312
Avoid empty catch blocks355 - 357
Avoid unused local variables such as 'nodeType'.518
Avoid empty catch blocks544 - 546
Avoid empty catch blocks546 - 548
Ensure you override both equals() and hashCode()674

info/magnolia/cms/core/DefaultHierarchyManager.java

ViolationLine
Avoid unused constructor parameters such as 'ignoredAccessManager'.88 - 90
Avoid unused constructor parameters such as 'ignoredUserId'.92 - 94
Avoid unused constructor parameters such as 'ignored'.99 - 101
Avoid unused local variables such as 'type'.316
Avoid empty catch blocks392 - 394

info/magnolia/cms/core/MagnoliaAccessProvider.java

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

info/magnolia/cms/core/MetaData.java

ViolationLine
Avoid unused constructor parameters such as 'ignoredAccessManager'.153 - 155

info/magnolia/cms/core/Path.java

ViolationLine
These nested if statements could be combined338 - 340

info/magnolia/cms/core/version/MgnlVersioningNodeWrapper.java

ViolationLine
Avoid empty catch blocks139 - 141
Avoid empty catch blocks141 - 143

info/magnolia/cms/filters/AbstractMgnlFilter.java

ViolationLine
Avoid unused private fields such as 'log'.65

info/magnolia/cms/filters/RepositoryMappingFilter.java

ViolationLine
Avoid unused private fields such as 'log'.61

info/magnolia/cms/i18n/AbstractMessagesImpl.java

ViolationLine
Ensure you override both equals() and hashCode()136

info/magnolia/cms/security/DelegatingUserManager.java

ViolationLine
Avoid empty catch blocks144 - 146
Avoid empty catch blocks167 - 169
Avoid empty catch blocks191 - 193

info/magnolia/cms/security/Digester.java

ViolationLine
Avoid unused private fields such as 'log'.76

info/magnolia/cms/security/ExternalUser.java

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

info/magnolia/cms/security/LogoutFilter.java

ViolationLine
Avoid unused private fields such as 'log'.59
Avoid unused private fields such as 'servletContext'.63

info/magnolia/cms/security/MgnlGroup.java

ViolationLine
Avoid unused private fields such as 'log'.47

info/magnolia/cms/security/MgnlRole.java

ViolationLine
Avoid unused private fields such as 'log'.48
Avoid unused private fields such as 'acls'.56

info/magnolia/cms/security/MgnlRoleManager.java

ViolationLine
These nested if statements could be combined154 - 156
These nested if statements could be combined193 - 196

info/magnolia/cms/security/MgnlUserManager.java

ViolationLine
Avoid unnecessary return statements579

info/magnolia/cms/security/SecurityCallbackFilter.java

ViolationLine
Avoid unused private fields such as 'log'.68

info/magnolia/cms/security/SystemUserManager.java

ViolationLine
Avoid unused method parameters such as 'password'.166 - 193

info/magnolia/cms/security/auth/login/BasicLogin.java

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

info/magnolia/cms/servlets/ClasspathSpool.java

ViolationLine
Avoid empty catch blocks97 - 99

info/magnolia/cms/servlets/MgnlServletContextListener.java

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

info/magnolia/cms/util/ClasspathResourcesUtil.java

ViolationLine
Avoid empty catch blocks145 - 147
These nested if statements could be combined267 - 269

info/magnolia/cms/util/ContentUtil.java

ViolationLine
Avoid empty catch blocks461 - 463
Avoid empty catch blocks476 - 478
These nested if statements could be combined524 - 527

info/magnolia/cms/util/InheritanceContentWrapper.java

ViolationLine
Avoid unused private fields such as 'log'.73

info/magnolia/cms/util/LazyInitPrintWriter.java

ViolationLine
Error while parsing /Users/mika/Work/magnolia/checkout/magnolia_main/magnolia-core/src/main/java/info/magnolia/cms/util/LazyInitPrintWriter.java: Encountered " "(" "( "" at line 48, column 14. Was expecting one of: "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... 0
Error while parsing /Users/mika/Work/magnolia/checkout/magnolia_main/magnolia-core/src/main/java/info/magnolia/cms/util/LazyInitPrintWriter.java: Encountered " "(" "( "" at line 48, column 14. Was expecting one of: "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... 0
Error while parsing /Users/mika/Work/magnolia/checkout/magnolia_main/magnolia-core/src/main/java/info/magnolia/cms/util/LazyInitPrintWriter.java: Encountered " "(" "( "" at line 48, column 14. Was expecting one of: "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... "." ... 0

info/magnolia/cms/util/RequestFormUtil.java

ViolationLine
Avoid empty catch blocks153 - 155

info/magnolia/cms/util/SearchReplace.java

ViolationLine
Avoid unused local variables such as 'group'.87

info/magnolia/cms/util/ServletUtil.java

ViolationLine
Avoid empty if statements176 - 178

info/magnolia/cms/util/UnicodeNormalizer.java

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

info/magnolia/commands/chain/ChainBase.java

ViolationLine
Avoid unused private fields such as 'log'.51
Avoid empty catch blocks123 - 125

info/magnolia/commands/impl/ExportCommand.java

ViolationLine
These nested if statements could be combined126 - 128

info/magnolia/content2bean/impl/CollectionPropertyHidingTransformer.java

ViolationLine
These nested if statements could be combined97 - 101

info/magnolia/content2bean/impl/Content2BeanTransformerImpl.java

ViolationLine
These nested if statements could be combined352 - 357

info/magnolia/content2bean/impl/TypeMappingImpl.java

ViolationLine
These nested if statements could be combined141 - 154
These nested if statements could be combined254 - 256

info/magnolia/context/AbstractContext.java

ViolationLine
Avoid unused private fields such as 'log'.68

info/magnolia/context/SingleJCRSessionSystemContext.java

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

info/magnolia/freemarker/FreemarkerServletContextWrapper.java

ViolationLine
Avoid empty catch blocks112 - 114
Avoid empty catch blocks177 - 179

info/magnolia/freemarker/models/BinaryNodeDataModel.java

ViolationLine
Avoid empty catch blocks73 - 75
Avoid empty catch blocks85 - 87
Avoid empty catch blocks99 - 101
Avoid empty catch blocks127 - 129

info/magnolia/freemarker/models/MagnoliaObjectWrapper.java

ViolationLine
Avoid unused private fields such as 'log'.50

info/magnolia/importexport/PropertiesImportExport.java

ViolationLine
Avoid empty if statements141 - 143
Avoid unused method parameters such as 'dumpMetaData'.249 - 264

info/magnolia/jackrabbit/ProviderImpl.java

ViolationLine
Avoid empty catch blocks182 - 184
Avoid empty catch blocks477 - 479

info/magnolia/jcr/node2bean/impl/CollectionPropertyHidingTransformer.java

ViolationLine
These nested if statements could be combined102 - 106

info/magnolia/jcr/node2bean/impl/Node2BeanTransformerImpl.java

ViolationLine
These nested if statements could be combined291 - 296

info/magnolia/jcr/node2bean/impl/TypeMappingImpl.java

ViolationLine
These nested if statements could be combined264 - 266

info/magnolia/jcr/util/ContentMap.java

ViolationLine
Avoid empty catch blocks116 - 118
Avoid empty if statements200 - 203
Avoid empty catch blocks240 - 242
Avoid empty catch blocks253 - 255
Avoid empty catch blocks267 - 269

info/magnolia/jcr/util/PropertiesImportExport.java

ViolationLine
Avoid empty if statements153 - 155

info/magnolia/jcr/util/PropertyUtil.java

ViolationLine
Avoid empty catch blocks184 - 186

info/magnolia/jcr/wrapper/ChannelVisibilityContentDecorator.java

ViolationLine
These nested if statements could be combined76 - 90

info/magnolia/jcr/wrapper/DelegateNodeWrapper.java

ViolationLine
Overriding method merely calls super582 - 585

info/magnolia/jcr/wrapper/DelegateSessionWrapper.java

ViolationLine
Overriding method merely calls super354 - 357

info/magnolia/jcr/wrapper/HTMLEscapingPropertyWrapper.java

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

info/magnolia/jcr/wrapper/MgnlPropertySettingContentDecorator.java

ViolationLine
These nested if statements could be combined192 - 202
Avoid unnecessary return statements220

info/magnolia/jcr/wrapper/MgnlPropertySettingNodeWrapper.java

ViolationLine
Avoid empty if statements211 - 213

info/magnolia/link/Link.java

ViolationLine
Avoid empty catch blocks140 - 142
Avoid empty catch blocks156 - 158
Avoid empty catch blocks158 - 159
Avoid empty catch blocks194 - 196

info/magnolia/link/LinkFactory.java

ViolationLine
Avoid unused private fields such as 'log'.48

info/magnolia/link/LinkTransformerManager.java

ViolationLine
Avoid unused private fields such as 'log'.52

info/magnolia/link/LinkUtil.java

ViolationLine
Avoid empty catch blocks543 - 545

info/magnolia/module/ModuleManager.java

ViolationLine
These nested if statements could be combined144 - 146

info/magnolia/module/delta/ChangeAllPropertiesWithCertainValueTask.java

ViolationLine
These nested if statements could be combined92 - 94

info/magnolia/module/delta/RemoveDuplicatePermissionTask.java

ViolationLine
These nested if statements could be combined91 - 95

info/magnolia/module/delta/RenamePropertyTask.java

ViolationLine
Avoid unused constructor parameters such as 'name'.43 - 46

info/magnolia/module/files/MD5CheckingFileExtractorOperation.java

ViolationLine
Avoid empty if statements121 - 123
Avoid empty while statements187 - 188

info/magnolia/objectfactory/guice/GuicePropertyConfigurer.java

ViolationLine
Avoid empty catch blocks58 - 61

info/magnolia/setup/for4_5/UpdateSecurityFilterClientCallbacksConfiguration.java

ViolationLine
Avoid unused method parameters such as 'ctx'.189 - 203
Avoid unused method parameters such as 'ctx'.205 - 213