You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/04/03 00:55:27 UTC
svn commit: r1463785 -
/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java
Author: tabish
Date: Tue Apr 2 22:55:27 2013
New Revision: 1463785
URL: http://svn.apache.org/r1463785
Log:
Better toString impl
Modified:
activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java
Modified: activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java?rev=1463785&r1=1463784&r2=1463785&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/commands/MessageIdSourceGenerator.java Tue Apr 2 22:55:27 2013
@@ -99,11 +99,9 @@ public class MessageIdSourceGenerator ex
}
protected void generateToStringBody( PrintWriter out ) {
- out.println("");
- out.println(" if( key == \"\" ) {");
+ out.println(" if (key.empty()) {");
out.println(" this->key = this->producerId->toString() + \":\" + ");
- out.println(" Long::toString(this->producerSequenceId) + \":\" + ");
- out.println(" Long::toString(this->brokerSequenceId);");
+ out.println(" Long::toString(this->producerSequenceId);");
out.println(" }");
out.println("");
out.println(" return this->key;");