aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-24 10:25:35 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-24 10:25:35 -0800
commitc49fc3b40a88deb2f7e09cd41a7bc74ee2677636 (patch)
treede9a4d825c6ab46f817cc96f5159e0e6f187060f
parent51c167fa8067ac81a47914211cc252f5dd3e40f1 (diff)
downloadtrackermap-server-c49fc3b40a88deb2f7e09cd41a7bc74ee2677636.tar.gz
trackermap-server-c49fc3b40a88deb2f7e09cd41a7bc74ee2677636.tar.bz2
trackermap-server-c49fc3b40a88deb2f7e09cd41a7bc74ee2677636.zip
Minor lint fix
-rw-r--r--src/main/java/org/traccar/helper/ClassScanner.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/helper/ClassScanner.java b/src/main/java/org/traccar/helper/ClassScanner.java
index c928f6a12..c201d101f 100644
--- a/src/main/java/org/traccar/helper/ClassScanner.java
+++ b/src/main/java/org/traccar/helper/ClassScanner.java
@@ -46,7 +46,7 @@ public final class ClassScanner {
URL packageUrl = baseClass.getClassLoader().getResource(packagePath);
if (packageUrl.getProtocol().equals("jar")) {
- String jarFileName = URLDecoder.decode(packageUrl.getFile(), StandardCharsets.UTF_8.name());
+ String jarFileName = URLDecoder.decode(packageUrl.getFile(), StandardCharsets.UTF_8);
try (JarFile jf = new JarFile(jarFileName.substring(5, jarFileName.indexOf("!")))) {
Enumeration<JarEntry> jarEntries = jf.entries();
while (jarEntries.hasMoreElements()) {