Repository: logging-log4j2 Updated Branches: refs/heads/master 23235449d -> a8f2ab222
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/a8f2ab22 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a8f2ab22 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a8f2ab22 Branch: refs/heads/master Commit: a8f2ab22277fd97c3f2795f65a9575c4993b9c01 Parents: 2323544 Author: ggregory <[email protected]> Authored: Fri Jan 15 16:19:15 2016 -0800 Committer: ggregory <[email protected]> Committed: Fri Jan 15 16:19:15 2016 -0800 ---------------------------------------------------------------------- .../logging/log4j/core/util/CronExpression.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a8f2ab22/log4j-core/src/main/java/org/apache/logging/log4j/core/util/CronExpression.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/CronExpression.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/CronExpression.java index 2eea157..d1ae64c 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/CronExpression.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/CronExpression.java @@ -208,8 +208,8 @@ public final class CronExpression { protected static final Integer ALL_SPEC = ALL_SPEC_INT; protected static final Integer NO_SPEC = NO_SPEC_INT; - protected static final Map<String, Integer> monthMap = new HashMap<String, Integer>(20); - protected static final Map<String, Integer> dayMap = new HashMap<String, Integer>(60); + protected static final Map<String, Integer> monthMap = new HashMap<>(20); + protected static final Map<String, Integer> dayMap = new HashMap<>(60); static { monthMap.put("JAN", 0); @@ -412,25 +412,25 @@ public final class CronExpression { try { if (seconds == null) { - seconds = new TreeSet<Integer>(); + seconds = new TreeSet<>(); } if (minutes == null) { - minutes = new TreeSet<Integer>(); + minutes = new TreeSet<>(); } if (hours == null) { - hours = new TreeSet<Integer>(); + hours = new TreeSet<>(); } if (daysOfMonth == null) { - daysOfMonth = new TreeSet<Integer>(); + daysOfMonth = new TreeSet<>(); } if (months == null) { - months = new TreeSet<Integer>(); + months = new TreeSet<>(); } if (daysOfWeek == null) { - daysOfWeek = new TreeSet<Integer>(); + daysOfWeek = new TreeSet<>(); } if (years == null) { - years = new TreeSet<Integer>(); + years = new TreeSet<>(); } int exprOn = SECOND;
