PMD Results

The following document contains the results of PMD 4.2.5.

Files

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

Violation Line
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

Violation Line
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

Violation Line
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

Violation Line
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

Violation Line
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

Violation Line
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

Violation Line
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

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

org/apache/shiro/authz/permission/WildcardPermission.java

Violation Line
Avoid unused imports such as 'java.util.LinkedHashSet' 28

org/apache/shiro/codec/Base64.java

Violation Line
These nested if statements could be combined 335 - 340
These nested if statements could be combined 375 - 378

org/apache/shiro/codec/CodecSupport.java

Violation Line
Avoid empty catch blocks 283 - 284
Avoid empty catch blocks 287 - 288

org/apache/shiro/config/Ini.java

Violation Line
Avoid empty if statements 538 - 540

org/apache/shiro/config/ReflectionBuilder.java

Violation Line
Avoid unused private fields such as 'STRING_VALUE_DELIMETER'. 80
These nested if statements could be combined 165 - 169
Avoid unused method parameters such as 'name'. 174 - 177

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

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

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

Violation Line
These nested if statements could be combined 211 - 219
Avoid empty catch blocks 336 - 337

org/apache/shiro/io/ResourceUtils.java

Violation Line
Avoid empty catch blocks 101 - 102

org/apache/shiro/mgt/AbstractRememberMeManager.java

Violation Line
Avoid unused imports such as 'org.apache.shiro.codec.Base64' 25

org/apache/shiro/realm/SimpleAccountRealm.java

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

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

Violation Line
These nested if statements could be combined 298 - 313

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

Violation Line
These nested if statements could be combined 530 - 545

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

Violation Line
Avoid empty catch blocks 293 - 295

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

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

org/apache/shiro/util/AntPathMatcher.java

Violation Line
These nested if statements could be combined 270 - 272
These nested if statements could be combined 286 - 288
These nested if statements could be combined 307 - 309
These nested if statements could be combined 350 - 352