loginmodules/password/validators/plaintext/src/main/java/org/beiter/michael/authn/jaas/loginmodules/password/validators/plaintext/PlainTextPasswordValidator.java
@Override
    // It would be pretty dumb to use varargs for the credential...
    @SuppressWarnings("PMD.UseVarargs")
    public final boolean validate(final char[] providedPassword, final char[] storedCredential) {

        if (providedPassword == null || storedCredential == null) {
            return false;
        } else {
            return Arrays.equals(providedPassword, storedCredential);
        }
    }
@Override
    // It would be pretty dumb to use varargs for the credential...
    @SuppressWarnings("PMD.UseVarargs")
    public final boolean validate(final char[] providedPassword, final char[] storedCredential) {

        if (providedPassword == null || storedCredential == null) {
            return false;
        } else {
            return Arrays.equals(providedPassword, storedCredential);
        }
    }
{@inheritDoc}