This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new 8e5e1562b Update from deprecated code
8e5e1562b is described below
commit 8e5e1562b8cf0ac8572fdf7f57ee3802cd23299a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 29 17:55:42 2025 -0500
Update from deprecated code
---
.../org/apache/commons/vfs2/IPv6LocalConnectionTests.java | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/IPv6LocalConnectionTests.java
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/IPv6LocalConnectionTests.java
index 4e304415d..2b79db245 100644
---
a/commons-vfs2/src/test/java/org/apache/commons/vfs2/IPv6LocalConnectionTests.java
+++
b/commons-vfs2/src/test/java/org/apache/commons/vfs2/IPv6LocalConnectionTests.java
@@ -16,18 +16,7 @@
*/
package org.apache.commons.vfs2;
-import static org.junit.jupiter.api.Assertions.assertArrayEquals;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertNull;
-import static org.junit.jupiter.api.Assertions.assertSame;
-import static org.junit.jupiter.api.Assertions.assertNotSame;
-import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-import org.junit.jupiter.api.Test;
import java.net.Inet6Address;
import java.net.InetAddress;
@@ -40,8 +29,10 @@ import java.util.Enumeration;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.Strings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.junit.jupiter.api.Test;
public class IPv6LocalConnectionTests extends AbstractProviderTestCase {
@@ -112,7 +103,7 @@ public class IPv6LocalConnectionTests extends
AbstractProviderTestCase {
final List<String> localIPv6Addresses = getLocalIPv6Addresses();
boolean connected = false;
for (final String ipv6Address : localIPv6Addresses) {
- final String ipv6Url =
StringUtils.replace(getReadFolder().getURL().toString(), "localhost", "[" +
ipv6Address + "]");
+ final String ipv6Url =
Strings.CS.replace(getReadFolder().getURL().toString(), "localhost", "[" +
ipv6Address + "]");
try {
final FileSystem fileSystem = getFileSystem();