PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 3
org/apache/shiro/web/filter/authc/LogoutFilter.java
org/apache/shiro/web/filter/authz/HostFilter.java
org/apache/shiro/web/filter/authz/HttpMethodPermissionFilter.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'static' on enum 'HttpMethodAction': nested enums are implicitly static |
100–120 |
UnnecessaryModifier |
Unnecessary modifier 'private' on constructor 'HttpMethodAction(String)': enum constructors are implicitly private |
113–115 |
org/apache/shiro/web/filter/mgt/DefaultFilter.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'private' on constructor 'DefaultFilter(Class)': enum constructors are implicitly private |
55–57 |
org/apache/shiro/web/mgt/DefaultWebSecurityManager.java
org/apache/shiro/web/servlet/Cookie.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'DELETED_COOKIE_VALUE': the field is declared in an interface type |
37 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'ONE_YEAR': the field is declared in an interface type |
43 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'ROOT_PATH': the field is declared in an interface type |
48 |
UnnecessaryModifier |
Unnecessary modifier 'public' on enum 'SameSiteOptions': the enum is declared in an interface type |
50–54 |
org/apache/shiro/web/subject/WebSubject.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on class 'Builder': members of interface types are implicitly public |
58–157 |
UnnecessaryModifier |
Unnecessary modifier 'static' on class 'Builder': types nested within an interface type are implicitly static |
58–157 |
org/apache/shiro/web/tags/SecureTag.java
Priority 4
org/apache/shiro/web/env/EnvironmentLoader.java
org/apache/shiro/web/filter/PathMatchingFilter.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.util.StringUtils' |
23 |
org/apache/shiro/web/filter/authc/AuthenticatingFilter.java
org/apache/shiro/web/filter/authc/BasicHttpAuthenticationFilter.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.web.util.WebUtils' |
23 |
UnusedImports |
Avoid unused imports such as 'javax.servlet.http.HttpServletResponse' |
30 |
UnusedImports |
Avoid unused imports such as 'java.util.HashSet' |
31 |
UnusedImports |
Avoid unused imports such as 'java.util.Locale' |
32 |
UnusedImports |
Avoid unused imports such as 'java.util.Set' |
33 |
org/apache/shiro/web/filter/authc/FormAuthenticationFilter.java
org/apache/shiro/web/filter/authc/LogoutFilter.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.util.StringUtils' |
24 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.web.filter.mgt.DefaultFilter.logout' |
36 |
org/apache/shiro/web/filter/mgt/PathMatchingFilterChainResolver.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.owasp.encoder.Encoder' |
25 |
org/apache/shiro/web/mgt/DefaultWebSessionStorageEvaluator.java
org/apache/shiro/web/servlet/AbstractShiroFilter.java
org/apache/shiro/web/servlet/IniShiroFilter.java
org/apache/shiro/web/servlet/ShiroHttpServletRequest.java
org/apache/shiro/web/servlet/ShiroHttpServletResponse.java
org/apache/shiro/web/servlet/ShiroHttpSession.java
org/apache/shiro/web/util/RedirectView.java
org/apache/shiro/web/util/WebUtils.java
Files
org/apache/shiro/web/env/EnvironmentLoader.java
org/apache/shiro/web/filter/PathMatchingFilter.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.util.StringUtils' |
4 |
23 |
org/apache/shiro/web/filter/authc/AuthenticatingFilter.java
org/apache/shiro/web/filter/authc/BasicHttpAuthenticationFilter.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.web.util.WebUtils' |
4 |
23 |
UnusedImports |
Avoid unused imports such as 'javax.servlet.http.HttpServletResponse' |
4 |
30 |
UnusedImports |
Avoid unused imports such as 'java.util.HashSet' |
4 |
31 |
UnusedImports |
Avoid unused imports such as 'java.util.Locale' |
4 |
32 |
UnusedImports |
Avoid unused imports such as 'java.util.Set' |
4 |
33 |
org/apache/shiro/web/filter/authc/FormAuthenticationFilter.java
org/apache/shiro/web/filter/authc/LogoutFilter.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.util.StringUtils' |
4 |
24 |
UnusedImports |
Avoid unused imports such as 'org.apache.shiro.web.filter.mgt.DefaultFilter.logout' |
4 |
36 |
CollapsibleIfStatements |
These nested if statements could be combined |
3 |
87–89 |
org/apache/shiro/web/filter/authz/HostFilter.java
org/apache/shiro/web/filter/authz/HttpMethodPermissionFilter.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'static' on enum 'HttpMethodAction': nested enums are implicitly static |
3 |
100–120 |
UnnecessaryModifier |
Unnecessary modifier 'private' on constructor 'HttpMethodAction(String)': enum constructors are implicitly private |
3 |
113–115 |
org/apache/shiro/web/filter/mgt/DefaultFilter.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'private' on constructor 'DefaultFilter(Class)': enum constructors are implicitly private |
3 |
55–57 |
org/apache/shiro/web/filter/mgt/PathMatchingFilterChainResolver.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'org.owasp.encoder.Encoder' |
4 |
25 |
org/apache/shiro/web/mgt/DefaultWebSecurityManager.java
org/apache/shiro/web/mgt/DefaultWebSessionStorageEvaluator.java
org/apache/shiro/web/servlet/AbstractShiroFilter.java
org/apache/shiro/web/servlet/Cookie.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'DELETED_COOKIE_VALUE': the field is declared in an interface type |
3 |
37 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'ONE_YEAR': the field is declared in an interface type |
3 |
43 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'ROOT_PATH': the field is declared in an interface type |
3 |
48 |
UnnecessaryModifier |
Unnecessary modifier 'public' on enum 'SameSiteOptions': the enum is declared in an interface type |
3 |
50–54 |
org/apache/shiro/web/servlet/IniShiroFilter.java
org/apache/shiro/web/servlet/ShiroHttpServletRequest.java
org/apache/shiro/web/servlet/ShiroHttpServletResponse.java
org/apache/shiro/web/servlet/ShiroHttpSession.java
org/apache/shiro/web/subject/WebSubject.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on class 'Builder': members of interface types are implicitly public |
3 |
58–157 |
UnnecessaryModifier |
Unnecessary modifier 'static' on class 'Builder': types nested within an interface type are implicitly static |
3 |
58–157 |
org/apache/shiro/web/tags/SecureTag.java
org/apache/shiro/web/util/RedirectView.java
org/apache/shiro/web/util/WebUtils.java