diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-24 10:25:35 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-24 10:25:35 -0800 |
commit | c49fc3b40a88deb2f7e09cd41a7bc74ee2677636 (patch) | |
tree | de9a4d825c6ab46f817cc96f5159e0e6f187060f | |
parent | 51c167fa8067ac81a47914211cc252f5dd3e40f1 (diff) | |
download | trackermap-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.java | 2 |
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()) { |