Repository: logging-log4j2
Updated Branches:
  refs/heads/master bc3cd34b5 -> ada28b3bb


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/ada28b3b
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/ada28b3b
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/ada28b3b

Branch: refs/heads/master
Commit: ada28b3bbeb1c75dc1e9d982afee4d6a68d9ad9c
Parents: bc3cd34
Author: ggregory <[email protected]>
Authored: Sat Jan 16 20:55:22 2016 -0800
Committer: ggregory <[email protected]>
Committed: Sat Jan 16 20:55:22 2016 -0800

----------------------------------------------------------------------
 .../core/appender/rolling/action/DeletingVisitorTest.java      | 2 +-
 .../core/appender/rolling/action/ScriptConditionTest.java      | 6 +++---
 .../org/apache/logging/log4j/core/impl/Log4jLogEventTest.java  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ada28b3b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/DeletingVisitorTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/DeletingVisitorTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/DeletingVisitorTest.java
index 2b3eb0c..4e96a2e 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/DeletingVisitorTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/DeletingVisitorTest.java
@@ -38,7 +38,7 @@ public class DeletingVisitorTest {
      * later verification.
      */
     static class DeletingVisitorHelper extends DeletingVisitor {
-        List<Path> deleted = new ArrayList<Path>();
+        List<Path> deleted = new ArrayList<>();
 
         public DeletingVisitorHelper(final Path basePath, final List<? extends 
PathCondition> pathFilters,
                 final boolean testMode) {

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ada28b3b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/ScriptConditionTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/ScriptConditionTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/ScriptConditionTest.java
index ccbfc86..aadfac9 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/ScriptConditionTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/action/ScriptConditionTest.java
@@ -61,7 +61,7 @@ public class ScriptConditionTest {
 
         Script script = new Script("test", "javascript", "pathList;"); // 
script that returns pathList
         ScriptCondition condition = new ScriptCondition(script, config);
-        List<PathWithAttributes> pathList = new 
ArrayList<PathWithAttributes>();
+        List<PathWithAttributes> pathList = new ArrayList<>();
         Path base = Paths.get("baseDirectory");
         List<PathWithAttributes> result = condition.selectFilesToDelete(base, 
pathList);
         assertSame(result, pathList);
@@ -72,7 +72,7 @@ public class ScriptConditionTest {
         Configuration config = new DefaultConfiguration();
         config.initialize(); // creates the ScriptManager
 
-        List<PathWithAttributes> pathList = new 
ArrayList<PathWithAttributes>();
+        List<PathWithAttributes> pathList = new ArrayList<>();
         pathList.add(new PathWithAttributes(Paths.get("/path/1"), new 
DummyFileAttributes()));
         pathList.add(new PathWithAttributes(Paths.get("/path/2"), new 
DummyFileAttributes()));
         pathList.add(new PathWithAttributes(Paths.get("/path/3"), new 
DummyFileAttributes()));
@@ -94,7 +94,7 @@ public class ScriptConditionTest {
         Configuration config = new DefaultConfiguration();
         config.initialize(); // creates the ScriptManager
 
-        List<PathWithAttributes> pathList = new 
ArrayList<PathWithAttributes>();
+        List<PathWithAttributes> pathList = new ArrayList<>();
         pathList.add(new PathWithAttributes(Paths.get("/path/1/abc/a.txt"), 
new DummyFileAttributes()));
         pathList.add(new PathWithAttributes(Paths.get("/path/2/abc/bbb.txt"), 
new DummyFileAttributes()));
         pathList.add(new PathWithAttributes(Paths.get("/path/3/abc/c.txt"), 
new DummyFileAttributes()));

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/ada28b3b/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
index 516c9ec..e029a53 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/impl/Log4jLogEventTest.java
@@ -234,7 +234,7 @@ public class Log4jLogEventTest {
     
     @Test
     public void testBuilderCorrectlyCopiesAllEventAttributes() {
-        final Map<String, String> contextMap = new HashMap<String, String>();
+        final Map<String, String> contextMap = new HashMap<>();
         contextMap.put("A", "B");
         final ContextStack contextStack = ThreadContext.getImmutableStack();
         final Exception exception = new Exception("test");
@@ -283,7 +283,7 @@ public class Log4jLogEventTest {
     
     @Test
     public void testEquals() {
-        final Map<String, String> contextMap = new HashMap<String, String>();
+        final Map<String, String> contextMap = new HashMap<>();
         contextMap.put("A", "B");
         ThreadContext.push("first");
         final ContextStack contextStack = ThreadContext.getImmutableStack();

Reply via email to