This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit cc3f9a6e4f2ee040d1fb7205cf71427897b8ba0a Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jun 16 08:12:12 2024 -0400 Fix PMD UnnecessaryFullyQualifiedName --- .../org/apache/commons/net/smtp/AuthenticatingSMTPClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java b/src/main/java/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java index dbd7efad..e626f78a 100644 --- a/src/main/java/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java +++ b/src/main/java/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java @@ -63,19 +63,19 @@ public class AuthenticatingSMTPClient extends SMTPSClient { * @return The name of the given authentication method suitable for the server. */ public static final String getAuthName(final AUTH_METHOD method) { - if (method.equals(AUTH_METHOD.PLAIN)) { + if (method.equals(PLAIN)) { return "PLAIN"; } - if (method.equals(AUTH_METHOD.CRAM_MD5)) { + if (method.equals(CRAM_MD5)) { return "CRAM-MD5"; } - if (method.equals(AUTH_METHOD.LOGIN)) { + if (method.equals(LOGIN)) { return "LOGIN"; } - if (method.equals(AUTH_METHOD.XOAUTH)) { + if (method.equals(XOAUTH)) { return "XOAUTH"; } - if (method.equals(AUTH_METHOD.XOAUTH2)) { + if (method.equals(XOAUTH2)) { return "XOAUTH2"; } return null;