PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 2
org/apache/shiro/util/AntPathMatcher.java
Priority 3
org/apache/shiro/authc/Authenticator.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'authenticate': the method is declared in an interface type |
65–66 |
org/apache/shiro/authc/LogoutAware.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'onLogout': the method is declared in an interface type |
40 |
org/apache/shiro/authz/permission/PermissionResolverAware.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setPermissionResolver': the method is declared in an interface type |
39 |
org/apache/shiro/authz/permission/RolePermissionResolverAware.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRolePermissionResolver': the method is declared in an interface type |
39 |
org/apache/shiro/realm/ldap/DefaultLdapContextFactory.java
org/apache/shiro/realm/ldap/JndiLdapContextFactory.java
org/apache/shiro/realm/text/PropertiesRealm.java
org/apache/shiro/session/mgt/eis/MemorySessionDAO.java
org/apache/shiro/subject/Subject.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'static' on class 'Builder': types nested within an interface type are implicitly static |
607–847 |
UnnecessaryModifier |
Unnecessary modifier 'public' on class 'Builder': members of interface types are implicitly public |
607–847 |
org/apache/shiro/util/AntPathMatcher.java
Priority 4
org/apache/shiro/SecurityUtils.java
org/apache/shiro/authc/SimpleAccount.java
org/apache/shiro/authc/SimpleAuthenticationInfo.java
org/apache/shiro/authc/credential/Md2CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/Md5CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/Sha1CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/Sha256CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/Sha384CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/Sha512CredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
22 |
org/apache/shiro/authc/credential/SimpleCredentialsMatcher.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Arrays' |
28 |
org/apache/shiro/authc/pam/AllSuccessfulStrategy.java
org/apache/shiro/authz/SimpleRole.java
org/apache/shiro/authz/annotation/package-info.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.annotation.ElementType' |
26 |
UnusedImports |
Avoid unused imports such as 'java.lang.annotation.Target' |
27 |
org/apache/shiro/authz/aop/PermissionAnnotationHandler.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.authz.annotation.RequiresRoles' |
24 |
org/apache/shiro/authz/permission/WildcardPermission.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.LinkedHashSet' |
28 |
org/apache/shiro/config/IniFactorySupport.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.HashMap' |
28 |
org/apache/shiro/env/BasicIniEnvironment.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.mgt.SecurityManager' |
23 |
org/apache/shiro/jndi/JndiLocator.java
org/apache/shiro/mgt/AbstractRememberMeManager.java
org/apache/shiro/mgt/DefaultSessionStorageEvaluator.java
org/apache/shiro/realm/ldap/DefaultLdapContextFactory.java
org/apache/shiro/realm/ldap/JndiLdapContextFactory.java
org/apache/shiro/session/mgt/AbstractValidatingSessionManager.java
org/apache/shiro/session/mgt/SimpleSession.java
org/apache/shiro/subject/SimplePrincipalMap.java
org/apache/shiro/util/AntPathMatcher.java
org/apache/shiro/util/ThreadContext.java
Files
org/apache/shiro/SecurityUtils.java
org/apache/shiro/authc/Authenticator.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'authenticate': the method is declared in an interface type |
3 |
65–66 |
org/apache/shiro/authc/LogoutAware.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'onLogout': the method is declared in an interface type |
3 |
40 |
org/apache/shiro/authc/SimpleAccount.java
org/apache/shiro/authc/SimpleAuthenticationInfo.java
org/apache/shiro/authc/credential/Md2CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/Md5CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/Sha1CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/Sha256CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/Sha384CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/Sha512CredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.AbstractHash' |
4 |
21 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.crypto.hash.Hash' |
4 |
22 |
org/apache/shiro/authc/credential/SimpleCredentialsMatcher.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Arrays' |
4 |
28 |
org/apache/shiro/authc/pam/AllSuccessfulStrategy.java
org/apache/shiro/authz/SimpleRole.java
org/apache/shiro/authz/annotation/package-info.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.annotation.ElementType' |
4 |
26 |
UnusedImports |
Avoid unused imports such as 'java.lang.annotation.Target' |
4 |
27 |
org/apache/shiro/authz/aop/PermissionAnnotationHandler.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.authz.annotation.RequiresRoles' |
4 |
24 |
org/apache/shiro/authz/permission/PermissionResolverAware.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setPermissionResolver': the method is declared in an interface type |
3 |
39 |
org/apache/shiro/authz/permission/RolePermissionResolverAware.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRolePermissionResolver': the method is declared in an interface type |
3 |
39 |
org/apache/shiro/authz/permission/WildcardPermission.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.LinkedHashSet' |
4 |
28 |
org/apache/shiro/config/IniFactorySupport.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.HashMap' |
4 |
28 |
org/apache/shiro/env/BasicIniEnvironment.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.mgt.SecurityManager' |
4 |
23 |
org/apache/shiro/jndi/JndiLocator.java
org/apache/shiro/mgt/AbstractRememberMeManager.java
org/apache/shiro/mgt/DefaultSessionStorageEvaluator.java
org/apache/shiro/realm/ldap/DefaultLdapContextFactory.java
org/apache/shiro/realm/ldap/JndiLdapContextFactory.java
org/apache/shiro/realm/text/PropertiesRealm.java
org/apache/shiro/session/mgt/AbstractValidatingSessionManager.java
org/apache/shiro/session/mgt/SimpleSession.java
org/apache/shiro/session/mgt/eis/MemorySessionDAO.java
org/apache/shiro/subject/SimplePrincipalMap.java
org/apache/shiro/subject/Subject.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'static' on class 'Builder': types nested within an interface type are implicitly static |
3 |
607–847 |
UnnecessaryModifier |
Unnecessary modifier 'public' on class 'Builder': members of interface types are implicitly public |
3 |
607–847 |
org/apache/shiro/util/AntPathMatcher.java
org/apache/shiro/util/ThreadContext.java