Repository: logging-log4j2 Updated Branches: refs/heads/master a8f2ab222 -> 7c96ebce4
Remove redundant specification of type arguments. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/7c96ebce Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/7c96ebce Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/7c96ebce Branch: refs/heads/master Commit: 7c96ebce4d67a6e6cb4f64ee1407922346faf076 Parents: a8f2ab2 Author: ggregory <[email protected]> Authored: Fri Jan 15 16:20:09 2016 -0800 Committer: ggregory <[email protected]> Committed: Fri Jan 15 16:20:09 2016 -0800 ---------------------------------------------------------------------- .../logging/log4j/core/util/datetime/FastDateParser.java | 8 ++++---- .../logging/log4j/core/util/datetime/FastDatePrinter.java | 4 ++-- .../apache/logging/log4j/core/util/datetime/FormatCache.java | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7c96ebce/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 061bbe8..c5f9fdc 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 @@ -196,7 +196,7 @@ public class FastDateParser implements DateParser, Serializable { private void init(final Calendar definingCalendar) { final StringBuilder regex = new StringBuilder(); - final List<Strategy> collector = new ArrayList<Strategy>(); + final List<Strategy> collector = new ArrayList<>(); final Matcher patternMatcher = formatPattern.matcher(pattern); if (!patternMatcher.lookingAt()) { @@ -642,7 +642,7 @@ public class FastDateParser implements DateParser, Serializable { private static ConcurrentMap<Locale, Strategy> getCache(final int field) { synchronized (caches) { if (caches[field] == null) { - caches[field] = new ConcurrentHashMap<Locale, Strategy>(3); + caches[field] = new ConcurrentHashMap<>(3); } return caches[field]; } @@ -725,7 +725,7 @@ public class FastDateParser implements DateParser, Serializable { this.field = field; this.locale = locale; final Map<String, Integer> keyValues = getDisplayNames(field, definingCalendar, locale); - this.lKeyValues = new HashMap<String, Integer>(); + this.lKeyValues = new HashMap<>(); for (final Map.Entry<String, Integer> entry : keyValues.entrySet()) { lKeyValues.put(entry.getKey().toLowerCase(locale), entry.getValue()); @@ -828,7 +828,7 @@ public class FastDateParser implements DateParser, Serializable { private static final String GMT_OPTION = "GMT[+-]\\d{1,2}:\\d{2}"; private final Locale locale; - private final Map<String, TimeZone> tzNames = new HashMap<String, TimeZone>(); + private final Map<String, TimeZone> tzNames = new HashMap<>(); private final String validTimeZoneChars; /** http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7c96ebce/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java index b960024..3bb6574 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FastDatePrinter.java @@ -144,7 +144,7 @@ public class FastDatePrinter implements DatePrinter, Serializable { */ protected List<Rule> parsePattern() { final DateFormatSymbols symbols = new DateFormatSymbols(mLocale); - final List<Rule> rules = new ArrayList<Rule>(); + final List<Rule> rules = new ArrayList<>(); final String[] ERAs = symbols.getEras(); final String[] months = symbols.getMonths(); @@ -1117,7 +1117,7 @@ public class FastDatePrinter implements DatePrinter, Serializable { // ----------------------------------------------------------------------- - private static final ConcurrentMap<TimeZoneDisplayKey, String> cTimeZoneDisplayCache = new ConcurrentHashMap<TimeZoneDisplayKey, String>( + private static final ConcurrentMap<TimeZoneDisplayKey, String> cTimeZoneDisplayCache = new ConcurrentHashMap<>( 7); /** http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/7c96ebce/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FormatCache.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FormatCache.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FormatCache.java index 66f1d90..d358f12 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FormatCache.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/datetime/FormatCache.java @@ -40,9 +40,9 @@ abstract class FormatCache<F extends Format> { static final int NONE = -1; private static final ConcurrentMap<MultipartKey, String> DATETIME_INSTANCE_CACHE = - new ConcurrentHashMap<MultipartKey, String>(7); + new ConcurrentHashMap<>(7); - private final ConcurrentMap<MultipartKey, F> cInstanceCache = new ConcurrentHashMap<MultipartKey, F>(7); + private final ConcurrentMap<MultipartKey, F> cInstanceCache = new ConcurrentHashMap<>(7); /** * <p>
