commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1085984 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
Date Sun, 27 Mar 2011 16:43:17 GMT
Author: sebb
Date: Sun Mar 27 16:43:16 2011
New Revision: 1085984

URL: http://svn.apache.org/viewvc?rev=1085984&view=rev
Log:
Simplify

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java?rev=1085984&r1=1085983&r2=1085984&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
(original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
Sun Mar 27 16:43:16 2011
@@ -140,9 +140,7 @@ public class AuthenticatingIMAPClient ex
                         throws IOException, NoSuchAlgorithmException,
                         InvalidKeyException, InvalidKeySpecException
     {
-        if (sendCommand(IMAPCommand.getCommand(IMAPCommand.AUTHENTICATE)
-                + " " + AUTH_METHOD.getAuthName(method))
-            != IMAPReply.CONT)
+        if (!IMAPReply.isContinuation(sendCommand(IMAPCommand.AUTHENTICATE, AUTH_METHOD.getAuthName(method))))
 	{
             return false;
 	}



Mime
View raw message