activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r453176 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
Date Thu, 05 Oct 2006 10:13:24 GMT
Author: rajdavies
Date: Thu Oct  5 03:13:23 2006
New Revision: 453176

URL: http://svn.apache.org/viewvc?view=rev&rev=453176
Log:
trim the string used to get the sequence id

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java?view=diff&rev=453176&r1=453175&r2=453176
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
Thu Oct  5 03:13:23 2006
@@ -63,7 +63,7 @@
         if( !isComposite() ) {
             // Parse off the sequenceId off the end.
             int p = this.physicalName.lastIndexOf(":");
-            sequenceId = Integer.parseInt(this.physicalName.substring(p+1));
+            sequenceId = Integer.parseInt(this.physicalName.substring(p+1).trim());
             // The rest should be the connection id.
             connectionId = this.physicalName.substring(0,p);
         }



Mime
View raw message