No need to initialize objects to null. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/1558b362 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/1558b362 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/1558b362
Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure Commit: 1558b3625ecf2c54e27269bfb1b4c671574c93d7 Parents: eee314c Author: Gary Gregory <ggreg...@apache.org> Authored: Mon Aug 8 16:29:08 2016 -0700 Committer: Gary Gregory <ggreg...@apache.org> Committed: Mon Aug 8 16:29:08 2016 -0700 ---------------------------------------------------------------------- .../apache/logging/log4j/core/layout/PatternLayout.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1558b362/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java index 7fde3c8..8afc7fd 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java @@ -408,13 +408,13 @@ public final class PatternLayout extends AbstractStringLayout { private String pattern = PatternLayout.DEFAULT_CONVERSION_PATTERN; @PluginElement("PatternSelector") - private PatternSelector patternSelector = null; + private PatternSelector patternSelector; @PluginConfiguration - private Configuration configuration = null; + private Configuration configuration; @PluginElement("Replace") - private RegexReplacement regexReplacement = null; + private RegexReplacement regexReplacement; // LOG4J2-783 use platform default by default @PluginBuilderAttribute @@ -427,10 +427,10 @@ public final class PatternLayout extends AbstractStringLayout { private boolean noConsoleNoAnsi = false; @PluginBuilderAttribute - private String header = null; + private String header; @PluginBuilderAttribute - private String footer = null; + private String footer; private Builder() { }