ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1404486 - in /ant/ivy/core/trunk: src/java/org/apache/ivy/ant/IvyDependencyTree.java test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java
Date Thu, 01 Nov 2012 07:45:33 GMT
Author: jlboudart
Date: Thu Nov  1 07:45:33 2012
New Revision: 1404486

URL: http://svn.apache.org/viewvc?rev=1404486&view=rev
Log:
Use StringBuffer in place of StringBuilder to be 1.4 compatible

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyDependencyTree.java
    ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyDependencyTree.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyDependencyTree.java?rev=1404486&r1=1404485&r2=1404486&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyDependencyTree.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyDependencyTree.java Thu Nov  1 07:45:33
2012
@@ -59,7 +59,7 @@ public class IvyDependencyTree extends I
             if (evicted && !showEvicted) {
                 continue;
             }
-            StringBuilder sb = new StringBuilder();
+            StringBuffer sb = new StringBuffer();
             if (indent > 0) {
                 for (int i = 0; i < indent; i++) {
                     if (i == indent - 1 && !iterator.hasNext() && !hasDependencies(dependency))
{

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java?rev=1404486&r1=1404485&r2=1404486&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/ant/IvyDependencyTreeTest.java Thu Nov  1
07:45:33 2012
@@ -137,7 +137,7 @@ public class IvyDependencyTreeTest exten
     private class AntTestListener implements BuildListener {
         private int logLevel;
 
-        private StringBuilder buildLog = new StringBuilder();
+        private StringBuffer buildLog = new StringBuffer();
 
         /**
          * Constructs a test listener which will ignore log events above the given level.



Mime
View raw message