logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501204 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java
Date Tue, 09 Jul 2013 11:34:47 GMT
Author: ggregory
Date: Tue Jul  9 11:34:47 2013
New Revision: 1501204

URL: http://svn.apache.org/r1501204
Log:
Convert 'for' loops to enhanced 'for' loops.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java?rev=1501204&r1=1501203&r2=1501204&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/impl/ThrowableFormatOptions.java
Tue Jul  9 11:34:47 2013
@@ -191,9 +191,9 @@ public final class ThrowableFormatOption
             int lines = DEFAULT.lines;
             String separator = DEFAULT.separator;
             List<String> packages = DEFAULT.packages;
-            for (int i = 0; i < options.length; i++) {
-                if (options[i] != null) {
-                    final String option = options[i].trim();
+            for (String rawOption : options) {
+                if (rawOption != null) {
+                    final String option = rawOption.trim();
                     if (option.length() == 0) {
                         // continue;
                     } else if (option.startsWith("separator(") && option.endsWith(")"))
{



Mime
View raw message