mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject [1/6] git commit: Removed the spurious buffer.clear()
Date Wed, 27 Mar 2013 16:40:53 GMT
Updated Branches:
  refs/heads/trunk 1a4ad866e -> 2d51d12db


Removed the spurious buffer.clear() 

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

Branch: refs/heads/trunk
Commit: 51c9fa3c71600de5b41da1fe1678eb94f9f962ab
Parents: 1a4ad86
Author: Emmanuel L├ęcharny <elecharny@apache.org>
Authored: Wed Mar 27 17:30:52 2013 +0100
Committer: Emmanuel L├ęcharny <elecharny@apache.org>
Committed: Wed Mar 27 17:30:52 2013 +0100

----------------------------------------------------------------------
 .../mina/transport/nio/udp/NioUdpServer.java       |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/51c9fa3c/core/src/main/java/org/apache/mina/transport/nio/udp/NioUdpServer.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/mina/transport/nio/udp/NioUdpServer.java b/core/src/main/java/org/apache/mina/transport/nio/udp/NioUdpServer.java
index ebc6a7c..24166cb 100644
--- a/core/src/main/java/org/apache/mina/transport/nio/udp/NioUdpServer.java
+++ b/core/src/main/java/org/apache/mina/transport/nio/udp/NioUdpServer.java
@@ -221,8 +221,6 @@ public class NioUdpServer extends AbstractUdpServer implements SelectorListener
                 }
                 if (read) {
                     LOG.debug("readable datagram for UDP service : {}", this);
-                    readBuffer.clear();
-
                     readBuffer.flip();
 
                     LOG.debug("read {} bytes form {}", readBuffer.remaining(), source);


Mime
View raw message