You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2015/11/21 01:41:15 UTC

[35/35] logging-log4j2 git commit: formatted factory method

formatted factory method


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7273e664
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7273e664
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7273e664

Branch: refs/heads/LOG4J2-89
Commit: 7273e664e47a947a21c5eea0e025f0c68018d298
Parents: 084db0e
Author: rpopma <rp...@apache.org>
Authored: Sun Nov 15 02:48:39 2015 +0900
Committer: Ralph Goers <rg...@apache.org>
Committed: Fri Nov 20 17:40:13 2015 -0700

----------------------------------------------------------------------
 .../log4j/core/appender/rolling/DefaultRolloverStrategy.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7273e664/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
index f5472a3..9c02385 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
@@ -215,10 +215,14 @@ public class DefaultRolloverStrategy implements RolloverStrategy {
      * @return A DefaultRolloverStrategy.
      */
     @PluginFactory
-    public static DefaultRolloverStrategy createStrategy(@PluginAttribute("max") final String max,
-            @PluginAttribute("min") final String min, @PluginAttribute("fileIndex") final String fileIndex,
+    public static DefaultRolloverStrategy createStrategy(
+            // @formatter:off
+            @PluginAttribute("max") final String max,
+            @PluginAttribute("min") final String min,
+            @PluginAttribute("fileIndex") final String fileIndex,
             @PluginAttribute("compressionLevel") final String compressionLevelStr,
             @PluginConfiguration final Configuration config) {
+            // @formatter:on
         final boolean useMax = fileIndex == null ? true : fileIndex.equalsIgnoreCase("max");
         int minIndex = MIN_WINDOW_SIZE;
         if (min != null) {