diff --git a/pom.xml b/pom.xml
index 57c1194..3c3570c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,7 +113,7 @@
org.connectbot
sshlib
- 2.2.24
+ 2.2.42
org.mockito
diff --git a/src/main/java/org/metricshub/ssh/SshClient.java b/src/main/java/org/metricshub/ssh/SshClient.java
index b71501f..5ba1148 100644
--- a/src/main/java/org/metricshub/ssh/SshClient.java
+++ b/src/main/java/org/metricshub/ssh/SshClient.java
@@ -43,8 +43,8 @@
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.Arrays;
+import java.util.List;
import java.util.Optional;
-import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -355,8 +355,7 @@ private StringBuilder listSubDirectory(
StringBuilder resultBuilder
) throws IOException {
if (depth <= 15) {
- @SuppressWarnings("unchecked")
- Vector pathContents = sftpClient.ls(remoteDirectoryPath);
+ List pathContents = sftpClient.ls(remoteDirectoryPath);
// Fix the remoteDirectoryPath (without the last '/')
if (remoteDirectoryPath.endsWith("/")) {