You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/10/21 14:22:21 UTC
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
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());