Add missing '@Override' annotations.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/643b3988
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/643b3988
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/643b3988

Branch: refs/heads/master
Commit: 643b398868dd1065cfea1a70438c945df5b88c96
Parents: c5c0e4b
Author: ggregory <[email protected]>
Authored: Mon Sep 14 13:55:59 2015 -0700
Committer: ggregory <[email protected]>
Committed: Mon Sep 14 13:55:59 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/util/LambdaUtilTest.java   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/643b3988/log4j-api/src/test/java/org/apache/logging/log4j/util/LambdaUtilTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-api/src/test/java/org/apache/logging/log4j/util/LambdaUtilTest.java 
b/log4j-api/src/test/java/org/apache/logging/log4j/util/LambdaUtilTest.java
index 86723a4..6778dbe 100644
--- a/log4j-api/src/test/java/org/apache/logging/log4j/util/LambdaUtilTest.java
+++ b/log4j-api/src/test/java/org/apache/logging/log4j/util/LambdaUtilTest.java
@@ -32,6 +32,7 @@ public class LambdaUtilTest {
     public void testGetSupplierResultOfSupplier() {
         final String expected = "result";
         final Object actual = LambdaUtil.get(new Supplier<String>() {
+            @Override
             public String get() {
                 return expected;
             }
@@ -43,6 +44,7 @@ public class LambdaUtilTest {
     public void testGetMessageSupplierResultOfSupplier() {
         final Message expected = new SimpleMessage("hi");
         final Message actual = LambdaUtil.get(new MessageSupplier() {
+            @Override
             public Message get() {
                 return expected;
             }
@@ -65,6 +67,7 @@ public class LambdaUtilTest {
     @Test(expected = RuntimeException.class)
     public void testGetSupplierExceptionIfSupplierThrowsException() {
         LambdaUtil.get(new Supplier<String>() {
+            @Override
             public String get() {
                 throw new RuntimeException();
             }
@@ -74,6 +77,7 @@ public class LambdaUtilTest {
     @Test(expected = RuntimeException.class)
     public void testGetMessageSupplierExceptionIfSupplierThrowsException() {
         LambdaUtil.get(new MessageSupplier() {
+            @Override
             public Message get() {
                 throw new RuntimeException();
             }
@@ -84,12 +88,14 @@ public class LambdaUtilTest {
     public void testGetAllReturnsResultOfSuppliers() {
         final String expected1 = "result1";
         final Supplier<String> function1 = new Supplier<String>() {
+            @Override
             public String get() {
                 return expected1;
             }
         };
         final String expected2 = "result2";
         final Supplier<String> function2 = new Supplier<String>() {
+            @Override
             public String get() {
                 return expected2;
             }
@@ -121,11 +127,13 @@ public class LambdaUtilTest {
     @Test(expected = RuntimeException.class)
     public void testGetAllThrowsExceptionIfAnyOfTheSuppliersThrowsException() {
         final Supplier<String> function1 = new Supplier<String>() {
+            @Override
             public String get() {
                 return "abc";
             }
         };
         final Supplier<String> function2 = new Supplier<String>() {
+            @Override
             public String get() {
                 throw new RuntimeException();
             }

Reply via email to