magnolia-core Version: 5.0.4 Last Published: Aug 28, 2013

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'.84 - 106

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

ViolationLine
Avoid unnecessary return statements127

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

ViolationLine
Avoid empty catch blocks168 - 170

info/magnolia/cms/core/AbstractContent.java

ViolationLine
Avoid empty catch blocks410 - 412

info/magnolia/cms/core/AbstractNodeData.java

ViolationLine
Avoid empty catch blocks132 - 134
Avoid empty catch blocks203 - 205

info/magnolia/cms/core/BinaryNodeData.java

ViolationLine
These nested if statements could be combined77 - 84

info/magnolia/cms/core/DefaultACLBasedPermissions.java

ViolationLine
Avoid unused constructor parameters such as 'configuration'.121 - 125

info/magnolia/cms/core/DefaultContent.java

ViolationLine
Avoid empty catch blocks315 - 317
Avoid empty catch blocks360 - 362
Avoid unused local variables such as 'nodeType'.526
Avoid empty catch blocks552 - 554
Avoid empty catch blocks554 - 556
Ensure you override both equals() and hashCode()682

info/magnolia/cms/core/DefaultHierarchyManager.java

ViolationLine
Avoid unused constructor parameters such as 'ignoredAccessManager'.93 - 95
Avoid unused constructor parameters such as 'ignoredUserId'.97 - 99
Avoid unused constructor parameters such as 'ignored'.104 - 106
Avoid unused local variables such as 'type'.329
Avoid empty catch blocks406 - 408

info/magnolia/cms/core/MagnoliaAccessProvider.java

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

info/magnolia/cms/core/MetaData.java

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

info/magnolia/cms/core/Path.java

ViolationLine
These nested if statements could be combined325 - 327

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

ViolationLine
Avoid unused local variables such as 'nodeType'.114
Avoid empty catch blocks141 - 143
Avoid empty catch blocks143 - 145

info/magnolia/cms/filters/AbstractMgnlFilter.java

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

info/magnolia/cms/filters/RepositoryMappingFilter.java

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

info/magnolia/cms/i18n/AbstractMessagesImpl.java

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

info/magnolia/cms/security/DelegatingUserManager.java

ViolationLine
Avoid empty catch blocks146 - 148
Avoid empty catch blocks169 - 171
Avoid empty catch blocks193 - 195

info/magnolia/cms/security/Digester.java

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

info/magnolia/cms/security/ExternalUser.java

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

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'.48

info/magnolia/cms/security/MgnlRole.java

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

info/magnolia/cms/security/MgnlRoleManager.java

ViolationLine
These nested if statements could be combined123 - 126
These nested if statements could be combined160 - 163

info/magnolia/cms/security/SecurityCallbackFilter.java

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

info/magnolia/cms/security/SystemUserManager.java

ViolationLine
Avoid unused method parameters such as 'password'.134 - 161

info/magnolia/cms/security/auth/callback/RealmCallback.java

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

info/magnolia/cms/security/auth/callback/UserCallback.java

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

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

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

info/magnolia/cms/servlets/ClasspathSpool.java

ViolationLine
Avoid empty catch blocks101 - 103

info/magnolia/cms/servlets/MgnlServletContextListener.java

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

info/magnolia/cms/util/ClasspathResourcesUtil.java

ViolationLine
Avoid empty catch blocks151 - 153
These nested if statements could be combined274 - 276

info/magnolia/cms/util/ContentUtil.java

ViolationLine
Avoid empty catch blocks465 - 467
Avoid empty catch blocks480 - 482
These nested if statements could be combined555 - 558

info/magnolia/cms/util/InheritanceContentWrapper.java

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

info/magnolia/cms/util/LazyInitPrintWriter.java

ViolationLine
Error while parsing /Users/jchocholacek/release/git/magnolia_main/target/checkout/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/jchocholacek/release/git/magnolia_main/target/checkout/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/jchocholacek/release/git/magnolia_main/target/checkout/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 blocks161 - 163

info/magnolia/cms/util/SearchReplace.java

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

info/magnolia/cms/util/ServletUtil.java

ViolationLine
Avoid empty if statements175 - 177

info/magnolia/cms/util/UnicodeNormalizer.java

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

info/magnolia/commands/chain/ChainBase.java

ViolationLine
Avoid empty catch blocks118 - 120

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 combined98 - 102

info/magnolia/content2bean/impl/Content2BeanTransformerImpl.java

ViolationLine
These nested if statements could be combined353 - 358

info/magnolia/content2bean/impl/TypeMappingImpl.java

ViolationLine
These nested if statements could be combined142 - 155
These nested if statements could be combined259 - 261

info/magnolia/context/AbstractContext.java

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

info/magnolia/context/SingleJCRSessionSystemContext.java

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

info/magnolia/freemarker/FreemarkerServletContextWrapper.java

ViolationLine
Avoid empty catch blocks105 - 107
Avoid empty catch blocks170 - 172

info/magnolia/freemarker/models/BinaryNodeDataModel.java

ViolationLine
Avoid empty catch blocks76 - 78
Avoid empty catch blocks88 - 90
Avoid empty catch blocks102 - 104
Avoid empty catch blocks130 - 132

info/magnolia/freemarker/models/MagnoliaObjectWrapper.java

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

info/magnolia/importexport/PropertiesImportExport.java

ViolationLine
Avoid empty if statements142 - 144
Avoid unused method parameters such as 'dumpMetaData'.250 - 265

info/magnolia/jackrabbit/ProviderImpl.java

ViolationLine
Avoid empty catch blocks184 - 186
Avoid empty catch blocks480 - 482

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 combined255 - 257

info/magnolia/jcr/util/ContentMap.java

ViolationLine
Avoid empty catch blocks118 - 120
Avoid empty if statements202 - 205
Avoid empty catch blocks242 - 244
Avoid empty catch blocks255 - 257
Avoid empty catch blocks269 - 271

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 combined78 - 92

info/magnolia/jcr/wrapper/DelegateNodeWrapper.java

ViolationLine
Overriding method merely calls super582 - 585

info/magnolia/jcr/wrapper/HTMLEscapingPropertyWrapper.java

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

info/magnolia/link/Link.java

ViolationLine
Avoid empty catch blocks145 - 147
Avoid empty catch blocks161 - 163
Avoid empty catch blocks198 - 200

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'.54

info/magnolia/link/LinkUtil.java

ViolationLine
Avoid empty catch blocks553 - 555

info/magnolia/module/ModuleManager.java

ViolationLine
These nested if statements could be combined149 - 151

info/magnolia/module/delta/ChangeAllPropertiesWithCertainValueTask.java

ViolationLine
These nested if statements could be combined83 - 85

info/magnolia/module/delta/RemoveDuplicatePermissionTask.java

ViolationLine
These nested if statements could be combined87 - 91

info/magnolia/module/files/MD5CheckingFileExtractorOperation.java

ViolationLine
Avoid empty if statements104 - 106
Avoid empty while statements162 - 163

info/magnolia/objectfactory/guice/GuiceComponentProvider.java

ViolationLine
Avoid unused private fields such as 'logger'.64

info/magnolia/objectfactory/guice/GuicePropertyConfigurer.java

ViolationLine
Avoid empty catch blocks60 - 63

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

info/magnolia/stats/JCRStats.java

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

info/magnolia/voting/voters/AbstractBoolVoter.java

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