PMD Results

The following document contains the results of PMD 4.2.2.

Files

TRUNK jGuard core - net/sf/jguard/core/authentication/AuthenticationServicePoint.java

Violation Line
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! 240

TRUNK jGuard core - net/sf/jguard/core/authentication/AuthenticationUtils.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 33

TRUNK jGuard core - net/sf/jguard/core/authentication/configuration/ConfigurationHelper.java

Violation Line
Avoid unused private methods such as 'installWithOldConfig(boolean)'. 111

TRUNK jGuard core - net/sf/jguard/core/authentication/credentials/JGuardCredential.java

Violation Line
Avoid unused private methods such as 'setId(Long)'. 192

TRUNK jGuard core - net/sf/jguard/core/authentication/schemes/HookFormSchemeHandler.java

Violation Line
Avoid unused constructor parameters such as 'factory'. 51 - 53
Avoid unused constructor parameters such as 'parameters'. 51 - 53

TRUNK jGuard core - net/sf/jguard/core/authorization/permissions/AuditPermissionCollection.java

Violation Line
Avoid unused private fields such as 'pDomain'. 46

TRUNK jGuard core - net/sf/jguard/core/authorization/policy/AbstractMultipleAppPolicy.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 42

TRUNK jGuard core - net/sf/jguard/core/authorization/policy/AccessControllerUtils.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 37

TRUNK jGuard core - net/sf/jguard/core/authorization/policy/PolicyHelper.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 34

TRUNK jGuard core - net/sf/jguard/core/authorization/policy/SingleAppPolicy.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 39

TRUNK jGuard core - net/sf/jguard/core/filters/PolicyEnforcementPointFilter.java

Violation Line
Avoid unused private methods such as 'initProvisioningServicePoint(String,String)'. 221
Avoid unused private methods such as 'authenticateAfterRegistration(AuthenticationBindings)'. 295

TRUNK jGuard core - net/sf/jguard/core/principals/PrincipalUtils.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 37

TRUNK jGuard core - net/sf/jguard/core/util/CryptUtils.java

Violation Line
Avoid unused local variables such as 'count'. 197

TRUNK jGuard ext - net/sf/jguard/ext/JdbcManagerHelper.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 39

TRUNK jGuard ext - net/sf/jguard/ext/authentication/PersistedSubject.java

Violation Line
Avoid unused private methods such as 'setId(Long)'. 124

TRUNK jGuard ext - net/sf/jguard/ext/authentication/callbacks/CallbackHandlerUtils.java

Violation Line
This usage of the Collection.toArray() method will throw a ClassCastException. 96

TRUNK jGuard ext - net/sf/jguard/ext/authentication/certificates/CertUtils.java

Violation Line
Avoid unused private methods such as 'inspectCRL(X509CRL)'. 166

TRUNK jGuard ext - net/sf/jguard/ext/authentication/certificates/CertificateConverter.java

Violation Line
Avoid empty catch blocks 71 - 72
Avoid empty catch blocks 72 - 73
Avoid empty catch blocks 73 - 74

TRUNK jGuard ext - net/sf/jguard/ext/authentication/loginmodules/CRLLoginModule.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 70

TRUNK jGuard ext - net/sf/jguard/ext/authentication/loginmodules/CertificateLoginModule.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 40

TRUNK jGuard ext - net/sf/jguard/ext/authentication/loginmodules/JCaptchaLoginModule.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 45

TRUNK jGuard ext - net/sf/jguard/ext/authentication/loginmodules/JNDILoginModule.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 40

TRUNK jGuard ext - net/sf/jguard/ext/authentication/loginmodules/XmlLoginModule.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 35

TRUNK jGuard ext - net/sf/jguard/ext/authentication/manager/AbstractAuthenticationManager.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 40

TRUNK jGuard ext - net/sf/jguard/ext/authentication/manager/HibernateUtil.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 3

TRUNK jGuard ext - net/sf/jguard/ext/authentication/manager/XmlAuthenticationManager.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 42

TRUNK jGuard ext - net/sf/jguard/ext/authorization/manager/AbstractAuthorizationManager.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 50

TRUNK jGuard ext - net/sf/jguard/ext/authorization/manager/JdbcAuthorizationManager.java

Violation Line
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 360
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 1148
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 1198

TRUNK jGuard ext - net/sf/jguard/ext/authorization/manager/XmlAuthorizationManager.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 45

TRUNK jGuard ext - net/sf/jguard/ext/database/ConnectionFactory.java

Violation Line
Avoid unused imports such as 'java.util.logging.Level' 37

TRUNK jGuard ext - net/sf/jguard/ext/database/DatabaseUtils.java

Violation Line
Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. 212

TRUNK jGuard ext - net/sf/jguard/ext/util/SubjectUtils.java

Violation Line
Avoid unused imports such as 'net.sf.jguard.core.authentication.AuthenticationException' 40

TRUNK jGuard jee extras - net/sf/jguard/jsf/AccessListener.java

Violation Line
Avoid unused imports such as 'net.sf.jguard.jee.provisioning.HttpServletProvisioningServicePoint' 46

TRUNK jGuard jee extras - net/sf/jguard/jsf/authentication/callbacks/JSFCallbackHandler.java

Violation Line
Avoid unused local variables such as 'portletRequest'. 48

TRUNK jGuard jee - net/sf/jguard/jee/HttpPermissionFactory.java

Violation Line
No need to import a type that lives in the same package 12

TRUNK jGuard jee - net/sf/jguard/jee/authentication/http/AccessFilter.java

Violation Line
Avoid unused private fields such as 'authBindingsFactory'. 66

TRUNK jGuard jee - net/sf/jguard/jee/authentication/http/AuthSchemesHelper.java

Violation Line
Avoid unused imports such as 'javax.servlet.ServletException' 37

TRUNK jGuard jee - net/sf/jguard/jee/provisioning/HttpServletProvisioningServicePoint.java

Violation Line
Avoid unused imports such as 'javax.servlet.ServletException' 41
Avoid unused imports such as 'net.sf.jguard.jee.authentication.callbacks.HttpServletCallbackHandler' 56