logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1395968 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
Date Tue, 09 Oct 2012 11:28:06 GMT
Author: ggregory
Date: Tue Oct  9 11:28:05 2012
New Revision: 1395968

URL: http://svn.apache.org/viewvc?rev=1395968&view=rev
Log:
Fix generics warning.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java?rev=1395968&r1=1395967&r2=1395968&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
Tue Oct  9 11:28:05 2012
@@ -132,7 +132,7 @@ public final class PatternParser {
 
         parse(pattern, converters, fields);
 
-        Iterator fieldIter = fields.iterator();
+        Iterator<FormattingInfo> fieldIter = fields.iterator();
 
         for (PatternConverter converter : converters) {
             LogEventPatternConverter pc;
@@ -145,7 +145,7 @@ public final class PatternParser {
 
             FormattingInfo field;
             if (fieldIter.hasNext()) {
-                field = (FormattingInfo) fieldIter.next();
+                field = fieldIter.next();
             } else {
                 field = FormattingInfo.getDefault();
             }



Mime
View raw message