Author: sebb
Date: Tue Jun 4 21:18:00 2013
New Revision: 1489611
URL: http://svn.apache.org/r1489611
Log:
FindBugs complaint about 2 missing charsets in one line reveals that there is
no need to convert a string into bytes and back again...
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=1489611&r1=1489610&r2=1489611&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
Tue Jun 4 21:18:00 2013
@@ -199,7 +199,7 @@ public class AuthenticatingIMAPClient ex
}
case XOAUTH:
{
- int result = sendData(new String(username.getBytes()));
+ int result = sendData(username);
if (result == IMAPReply.OK)
{
setState(IMAP.IMAPState.AUTH_STATE);