logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501102 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java
Date Tue, 09 Jul 2013 06:02:26 GMT
Author: ggregory
Date: Tue Jul  9 06:02:26 2013
New Revision: 1501102

URL: http://svn.apache.org/r1501102
Log:
Use final.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java?rev=1501102&r1=1501101&r2=1501102&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java
Tue Jul  9 06:02:26 2013
@@ -105,7 +105,7 @@ public final class PatternLayout extends
      *                         exceptions will be written even if the pattern does not specify
so).
      */
     private PatternLayout(final Configuration config, final RegexReplacement replace, final
String pattern,
-                          final Charset charset, boolean handleExceptions) {
+                          final Charset charset, final boolean handleExceptions) {
         super(charset);
         this.replace = replace;
         this.conversionPattern = pattern;
@@ -145,7 +145,7 @@ public final class PatternLayout extends
     @Override
     public Map<String, String> getContentFormat()
     {
-        Map<String, String> result = new HashMap<String, String>();
+        final Map<String, String> result = new HashMap<String, String>();
         result.put("structured", "false");
         result.put("formatType", "conversion");
         result.put("format", conversionPattern);
@@ -213,7 +213,7 @@ public final class PatternLayout extends
                                              @PluginAttr("charset") final String charsetName,
                                              @PluginAttr("suppressExceptions") final String
suppressExceptions) {
         final Charset charset = Charsets.getSupportedCharset(charsetName);
-        boolean handleExceptions = suppressExceptions == null || !Boolean.parseBoolean(suppressExceptions);
+        final boolean handleExceptions = suppressExceptions == null || !Boolean.parseBoolean(suppressExceptions);
         return new PatternLayout(config, replace, pattern == null ? DEFAULT_CONVERSION_PATTERN
: pattern, charset,
                 handleExceptions);
     }



Mime
View raw message