You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2018/11/02 00:58:50 UTC
logging-log4j2 git commit: Fix funky formating.
Repository: logging-log4j2
Updated Branches:
refs/heads/release-2.x 738081015 -> 4d9089bfd
Fix funky formating.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4d9089bf
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4d9089bf
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4d9089bf
Branch: refs/heads/release-2.x
Commit: 4d9089bfdf0427e1b50b32ab40f5eb7cdfba34b7
Parents: 7380810
Author: Gary Gregory <ga...@gmail.com>
Authored: Thu Nov 1 18:58:46 2018 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Thu Nov 1 18:58:46 2018 -0600
----------------------------------------------------------------------
.../apache/logging/log4j/core/util/datetime/FastDateParser.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4d9089bf/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDateParser.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDateParser.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDateParser.java
index 9e5e6ec..b6e96c4 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDateParser.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDateParser.java
@@ -596,7 +596,7 @@ public class FastDateParser implements DateParser, Serializable {
return WEEK_OF_YEAR_STRATEGY;
case 'y':
case 'Y':
- return width>2 ?LITERAL_YEAR_STRATEGY :ABBREVIATED_YEAR_STRATEGY;
+ return width > 2 ? LITERAL_YEAR_STRATEGY : ABBREVIATED_YEAR_STRATEGY;
case 'X':
return ISO8601TimeZoneStrategy.getStrategy(width);
case 'Z':