This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch root-fs
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/root-fs by this push:
new 85b584705 The order is significant and using a Collection would be
misleading
85b584705 is described below
commit 85b5847054f6372c7c40008aacd036ac4190f0a7
Author: Guillaume Nodet <[email protected]>
AuthorDate: Tue May 2 15:16:09 2023 +0200
The order is significant and using a Collection would be misleading
We could switch to a SequencedCollection from JDK 21 in the future
---
sshd-common/src/main/java/org/apache/sshd/common/util/io/IoUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/sshd-common/src/main/java/org/apache/sshd/common/util/io/IoUtils.java
b/sshd-common/src/main/java/org/apache/sshd/common/util/io/IoUtils.java
index 05c154c31..11dd1d92d 100644
--- a/sshd-common/src/main/java/org/apache/sshd/common/util/io/IoUtils.java
+++ b/sshd-common/src/main/java/org/apache/sshd/common/util/io/IoUtils.java
@@ -749,7 +749,7 @@ public final class IoUtils {
* @param namesList the parts of the path to build
* @return the built path
*/
- public static Path buildPath(Path root, FileSystem fs, Collection<String>
namesList) {
+ public static Path buildPath(Path root, FileSystem fs, List<String>
namesList) {
Objects.requireNonNull(fs);
if (namesList == null) {
return null;
@@ -770,7 +770,7 @@ public final class IoUtils {
* @param namesList the names list
* @return the built path
*/
- public static Path buildRelativePath(FileSystem fs, Collection<String>
namesList) {
+ public static Path buildRelativePath(FileSystem fs, List<String>
namesList) {
String[] names = new String[namesList.size() - 1];
Iterator<String> it = namesList.iterator();