incubator-kalumet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1203261 - /incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java
Date Thu, 17 Nov 2011 16:51:09 GMT
Author: jbonofre
Date: Thu Nov 17 16:51:09 2011
New Revision: 1203261

URL: http://svn.apache.org/viewvc?rev=1203261&view=rev
Log:
Killer Olivier's improvement in the stack trace to "minor" gain ;)

Modified:
    incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java

Modified: incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java?rev=1203261&r1=1203260&r2=1203261&view=diff
==============================================================================
--- incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java
(original)
+++ incubator/kalumet/trunk/console/src/main/java/org/apache/kalumet/console/utils/StackTraceUtils.java
Thu Nov 17 16:51:09 2011
@@ -32,8 +32,7 @@ public class StackTraceUtils {
      */
     public static String toString(StackTraceElement[] elements) {
         StringBuilder builder = new StringBuilder();
-        for (int i = 0; i < elements.length; i++) {
-
+        for (int i = 0, size=elements.length; i < size; i++) {
             builder.append(elements[i].toString());
             builder.append('\n');
         }



Mime
View raw message