You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2019/05/13 05:31:31 UTC
[logging-log4j2] 06/06: Cleaned up unused imports
This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 502f9fc700820d0b97d5aaacea89535810f96eb2
Author: ulrichenslin <ue...@apple.com>
AuthorDate: Mon Mar 4 15:19:25 2019 +0200
Cleaned up unused imports
---
.../src/test/java/org/apache/logging/log4j/util/ConstantsTest.java | 6 +-----
.../apache/logging/log4j/core/layout/AbstractStringLayoutTest.java | 3 ---
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/log4j-api/src/test/java/org/apache/logging/log4j/util/ConstantsTest.java b/log4j-api/src/test/java/org/apache/logging/log4j/util/ConstantsTest.java
index f568c9f..8d323be 100644
--- a/log4j-api/src/test/java/org/apache/logging/log4j/util/ConstantsTest.java
+++ b/log4j-api/src/test/java/org/apache/logging/log4j/util/ConstantsTest.java
@@ -2,16 +2,12 @@ package org.apache.logging.log4j.util;
import org.junit.Test;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.Properties;
-
import static org.junit.Assert.*;
public class ConstantsTest {
@Test
- public void testJdkVersionDetection() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
+ public void testJdkVersionDetection() {
assertEquals(1, Constants.getMajorVersion("1.1.2"));
assertEquals(8, Constants.getMajorVersion("1.8.2"));
assertEquals(9, Constants.getMajorVersion("9.1.1"));
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/AbstractStringLayoutTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/AbstractStringLayoutTest.java
index 2b35bac..add4387 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/AbstractStringLayoutTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/AbstractStringLayoutTest.java
@@ -15,10 +15,7 @@ package org.apache.logging.log4j.core.layout;/*
* limitations under the license.
*/
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.nio.charset.Charset;
-import java.util.Properties;
import org.apache.logging.log4j.core.LogEvent;
import org.junit.Test;