geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r706594 - in /geronimo/gshell/trunk/gshell-support: gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java
Date Tue, 21 Oct 2008 12:22:21 GMT
Author: jdillon
Date: Tue Oct 21 05:22:21 2008
New Revision: 706594

URL: http://svn.apache.org/viewvc?rev=706594&view=rev
Log:
Use StringBuilder instead of StringBuffer

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java
    geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java?rev=706594&r1=706593&r2=706594&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/Console.java
Tue Oct 21 05:22:21 2008
@@ -153,8 +153,8 @@
 
         // Log the line as HEX if trace is enabled
         if (log.isTraceEnabled()) {
-            StringBuffer idx = new StringBuffer();
-            StringBuffer hex = new StringBuffer();
+            StringBuilder idx = new StringBuilder();
+            StringBuilder hex = new StringBuilder();
 
             byte[] bytes = line.getBytes();
             for (byte b : bytes) {

Modified: geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java?rev=706594&r1=706593&r2=706594&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-ivy/src/main/java/org/apache/geronimo/gshell/ivy/monitor/ProgressSpinner.java
Tue Oct 21 05:22:21 2008
@@ -53,7 +53,7 @@
     public String spin(final String message) {
         // message may be null
         
-        StringBuffer buff = new StringBuffer();
+        StringBuilder buff = new StringBuilder();
 
         String[] elements = style.getElements();
         buff.append(style.getPrefix());



Mime
View raw message