PMD Results

The following document contains the results of PMD 4.2.5.

Files

org/apache/shiro/authc/credential/Md2CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authc/credential/Md5CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authc/credential/Sha1CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authc/credential/Sha256CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authc/credential/Sha384CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authc/credential/Sha512CredentialsMatcher.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash'21
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash'22

org/apache/shiro/authz/annotation/package-info.java

ViolationLine
Avoid unused imports such as 'java.lang.annotation.ElementType'26
Avoid unused imports such as 'java.lang.annotation.Target'27

org/apache/shiro/authz/aop/PermissionAnnotationHandler.java

ViolationLine
Avoid unused imports such as 'org.apache.shiro.authz.annotation.RequiresRoles'24

org/apache/shiro/codec/Base64.java

ViolationLine
These nested if statements could be combined335 - 340
These nested if statements could be combined375 - 378

org/apache/shiro/codec/CodecSupport.java

ViolationLine
Avoid empty catch blocks283 - 284
Avoid empty catch blocks287 - 288

org/apache/shiro/config/Ini.java

ViolationLine
Avoid empty if statements529 - 531

org/apache/shiro/config/ReflectionBuilder.java

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

org/apache/shiro/crypto/hash/AbstractHash.java

ViolationLine
Avoid unused private methods such as 'isReserved(String)'.306

org/apache/shiro/crypto/hash/format/DefaultHashFormatFactory.java

ViolationLine
These nested if statements could be combined211 - 219
Avoid empty catch blocks336 - 337

org/apache/shiro/io/ResourceUtils.java

ViolationLine
Avoid empty catch blocks101 - 102

org/apache/shiro/realm/SimpleAccountRealm.java

ViolationLine
Avoid unused imports such as 'java.util.concurrent.locks.Lock'31

org/apache/shiro/realm/ldap/DefaultLdapContextFactory.java

ViolationLine
These nested if statements could be combined298 - 313

org/apache/shiro/realm/ldap/JndiLdapContextFactory.java

ViolationLine
These nested if statements could be combined530 - 545

org/apache/shiro/realm/text/PropertiesRealm.java

ViolationLine
Avoid empty catch blocks293 - 295

org/apache/shiro/session/mgt/eis/MemorySessionDAO.java

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

org/apache/shiro/util/AntPathMatcher.java

ViolationLine
These nested if statements could be combined270 - 272
These nested if statements could be combined286 - 288
These nested if statements could be combined307 - 309
These nested if statements could be combined350 - 352