Repository: mina
Updated Branches:
  refs/heads/2.0 0a30a079f -> 2030bf02a


Replaced the array() call by a toString() to avoid having extra chars
when using not ascii chars

Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/2030bf02
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/2030bf02
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/2030bf02

Branch: refs/heads/2.0
Commit: 2030bf02a96f109fd1454c835fcf69e83a16d466
Parents: 0a30a07
Author: Emmanuel Lécharny <[email protected]>
Authored: Tue Sep 2 11:41:41 2014 +0200
Committer: Emmanuel Lécharny <[email protected]>
Committed: Tue Sep 2 11:41:41 2014 +0200

----------------------------------------------------------------------
 .../org/apache/mina/filter/codec/textline/TextLineDecoder.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/2030bf02/mina-core/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java
----------------------------------------------------------------------
diff --git 
a/mina-core/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java
 
b/mina-core/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java
index 3a24997..84699f2 100644
--- 
a/mina-core/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java
+++ 
b/mina-core/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java
@@ -274,7 +274,7 @@ public class TextLineDecoder implements ProtocolDecoder {
                         CharsetDecoder decoder = ctx.getDecoder();
 
                         CharBuffer buffer = 
decoder.decode(ByteBuffer.wrap(data));
-                        String str = new String(buffer.array());
+                        String str = buffer.toString();
                         writeText(session, str, out);
                     } finally {
                         buf.clear();
@@ -372,7 +372,7 @@ public class TextLineDecoder implements ProtocolDecoder {
     }
 
     /**
-     * A Context used during the decoding of a lin. It stores the decoder, 
+     * A Context used during the decoding of a lin. It stores the decoder,
      * the temporary buffer containing the decoded line, and other status 
flags.
      *
      * @author <a href="mailto:[email protected]";>Apache Directory 
Project</a>

Reply via email to