activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [3/4] activemq-artemis git commit: Use StringBuilder instead of StringBuffer on STOMP encode
Date Tue, 21 Jul 2015 21:07:15 GMT
Use StringBuilder instead of StringBuffer on STOMP encode


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/214a1dc1
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/214a1dc1
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/214a1dc1

Branch: refs/heads/master
Commit: 214a1dc1ebd90806c7ba20762ee672ec11e4eb22
Parents: 615a988
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Tue Jul 21 19:08:41 2015 +0300
Committer: Ville Skyttä <ville.skytta@iki.fi>
Committed: Tue Jul 21 19:11:07 2015 +0300

----------------------------------------------------------------------
 .../apache/activemq/artemis/core/protocol/stomp/StompFrame.java  | 4 ++--
 .../activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/214a1dc1/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
index 1d37194..0193fdb 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompFrame.java
@@ -117,7 +117,7 @@ public class StompFrame
             return buffer;
          }
 
-         StringBuffer head = new StringBuffer();
+         StringBuilder head = new StringBuilder();
          head.append(command);
          head.append(Stomp.NEWLINE);
          // Output the headers.
@@ -148,7 +148,7 @@ public class StompFrame
       return buffer;
    }
 
-   protected void encodeHeaders(StringBuffer head)
+   protected void encodeHeaders(StringBuilder head)
    {
       for (Map.Entry<String, String> header : headers.entrySet())
       {

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/214a1dc1/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
index 2a38d40..783c845 100644
--- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
+++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/v11/StompFrameV11.java
@@ -39,7 +39,7 @@ public class StompFrameV11 extends StompFrame
    }
 
    @Override
-   protected void encodeHeaders(StringBuffer head)
+   protected void encodeHeaders(StringBuilder head)
    {
       for (Header h : allHeaders)
       {


Mime
View raw message