tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r832014 - in /tomcat/trunk/java/org/apache/catalina/mbeans: JmxRemoteLifecycleListener.java MBeanUtils.java
Date Mon, 02 Nov 2009 18:32:29 GMT
Author: markt
Date: Mon Nov  2 18:32:29 2009
New Revision: 832014

URL: http://svn.apache.org/viewvc?rev=832014&view=rev
Log:
StringBuffer -> StringBuilder for o.a.c.mbeans

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
    tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java?rev=832014&r1=832013&r2=832014&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java Mon Nov 
2 18:32:29 2009
@@ -236,7 +236,7 @@
         }
 
         // Build the connection string with fixed ports
-        StringBuffer url = new StringBuffer();
+        StringBuilder url = new StringBuilder();
         url.append("service:jmx:rmi://localhost:");
         url.append(theRmiServerPort);
         url.append("/jndi/rmi://localhost:");

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java?rev=832014&r1=832013&r2=832014&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanUtils.java Mon Nov  2 18:32:29 2009
@@ -465,7 +465,7 @@
                 IntrospectionUtils.getProperty(connector, "address");
             Integer port = (Integer)
                 IntrospectionUtils.getProperty(connector, "port");
-            StringBuffer sb = new StringBuffer(domain);
+            StringBuilder sb = new StringBuilder(domain);
             sb.append(":type=Connector");
             sb.append(",port=" + port);
             if ((address != null) && (address.length()>0)) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message