You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/07/20 15:24:36 UTC
(commons-vfs) branch master updated (a3c8dc3ca -> 4955babe2)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
from a3c8dc3ca Bump commons-io:commons-io from 2.19.0 to 2.20.0
new 3d6fc2035 Use StringUtils.toRootLowerCase
new 4955babe2 Use StringUtils.toRootUpperCase
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java | 5 ++---
.../src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
(commons-vfs) 02/02: Use StringUtils.toRootUpperCase
Posted by gg...@apache.org.
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
commit 4955babe2adcbe84d6e6fdd435ca357f5a5b66f2
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Jul 20 11:24:30 2025 -0400
Use StringUtils.toRootUpperCase
---
.../src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
index cc0587871..eeeebdf83 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/util/NHttpFileServer.java
@@ -45,6 +45,7 @@ import java.util.concurrent.TimeUnit;
import javax.net.ssl.SSLContext;
+import org.apache.commons.lang3.StringUtils;
import org.apache.hc.client5.http.utils.DateUtils;
import org.apache.hc.core5.http.ContentType;
import org.apache.hc.core5.http.EndpointDetails;
@@ -94,7 +95,7 @@ public final class NHttpFileServer {
throws HttpException, IOException {
println("Handling " + message + " in " + context);
final HttpRequest request = message.getHead();
- final String method = request.getMethod().toUpperCase(Locale.ROOT);
+ final String method = StringUtils.toRootUpperCase(request.getMethod());
if (!method.equals("GET") && !method.equals("HEAD") && !method.equals("POST")) {
throw new MethodNotSupportedException(method + " method not supported");
}
(commons-vfs) 01/02: Use StringUtils.toRootLowerCase
Posted by gg...@apache.org.
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
commit 3d6fc2035ac9502511de0bcc624d230e6c0234ff
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Jul 20 11:24:14 2025 -0400
Use StringUtils.toRootLowerCase
---
.../org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java
index 927622ec7..251791aad 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http4/Http4FilesCacheTest.java
@@ -18,8 +18,7 @@ package org.apache.commons.vfs2.provider.http4;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import java.util.Locale;
-
+import org.apache.commons.lang3.StringUtils;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.FileSystemManager;
@@ -84,7 +83,7 @@ public class Http4FilesCacheTest {
// We end up converting back to lowercase, but OK per RFC.
final String queryStringUrl3 = "http4://alice%5C1234:secret@localhost:8080/";
try (FileObject queryFile3 = fileSystemManager.resolveFile(queryStringUrl3)) {
- assertEquals(queryStringUrl3.toLowerCase(Locale.ROOT), queryFile3.getURL().toExternalForm());
+ assertEquals(StringUtils.toRootLowerCase(queryStringUrl3), queryFile3.getURL().toExternalForm());
}
}