You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2020/05/13 13:43:19 UTC
[logging-log4j2] branch release-2.x updated: Test does not need to
declare exception in throws clause.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 85f2408 Test does not need to declare exception in throws clause.
85f2408 is described below
commit 85f24081e84086ebf289f7a811573dae1a7e7042
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 13 09:43:15 2020 -0400
Test does not need to declare exception in throws clause.
---
.../test/java/org/apache/logging/log4j/core/util/NetUtilsTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/NetUtilsTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/NetUtilsTest.java
index c624798..fc40037 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/util/NetUtilsTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/util/NetUtilsTest.java
@@ -32,7 +32,7 @@ public class NetUtilsTest {
private static final boolean IS_WINDOWS = PropertiesUtil.getProperties().isOsWindows();
@Test
- public void testToUriWithoutBackslashes() throws URISyntaxException {
+ public void testToUriWithoutBackslashes() {
final String config = "file:///path/to/something/on/unix";
final URI uri = NetUtils.toURI(config);
@@ -41,7 +41,7 @@ public class NetUtilsTest {
}
@Test
- public void testToUriWindowsWithBackslashes() throws URISyntaxException {
+ public void testToUriWindowsWithBackslashes() {
Assume.assumeTrue(IS_WINDOWS);
final String config = "file:///D:\\path\\to\\something/on/windows";
final URI uri = NetUtils.toURI(config);
@@ -51,7 +51,7 @@ public class NetUtilsTest {
}
@Test
- public void testToUriWindowsAbsolutePath() throws URISyntaxException {
+ public void testToUriWindowsAbsolutePath() {
Assume.assumeTrue(IS_WINDOWS);
final String config = "D:\\path\\to\\something\\on\\windows";
final URI uri = NetUtils.toURI(config);