You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/10/06 14:12:30 UTC

svn commit: r1395022 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java

Author: sebb
Date: Sat Oct  6 12:12:29 2012
New Revision: 1395022

URL: http://svn.apache.org/viewvc?rev=1395022&view=rev
Log:
Simplify by using the new Base64 method to create the String output

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=1395022&r1=1395021&r2=1395022&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 Sat Oct  6 12:12:29 2012
@@ -150,9 +150,7 @@ public class AuthenticatingIMAPClient ex
             {
                 // the server sends an empty response ("+ "), so we don't have to read it.
                 int result = sendData(
-                    new String(
-                        Base64.encodeBase64(("\000" + username + "\000" + password).getBytes())
-                        )
+                    Base64.encodeBase64StringUnChunked(("\000" + username + "\000" + password).getBytes())
                     );
                 if (result == IMAPReply.OK)
                 {