logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396350 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java
Date Tue, 09 Oct 2012 21:46:22 GMT
Author: ggregory
Date: Tue Oct  9 21:46:22 2012
New Revision: 1396350

URL: http://svn.apache.org/viewvc?rev=1396350&view=rev
Log:
Use varargs.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java?rev=1396350&r1=1396349&r2=1396350&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/rolling/PatternProcessor.java
Tue Oct  9 21:46:22 2012
@@ -184,7 +184,7 @@ public class PatternProcessor {
         return new PatternParser(null, KEY, null);
     }
 
-    private boolean patternContains(String pattern, char[] chars) {
+    private boolean patternContains(String pattern, char... chars) {
         for (char character : chars) {
             if (patternContains(pattern, character)) {
                 return true;



Mime
View raw message