From 2248e39ea0658f712db3a4ee4af13b98d8edaf7c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 4 Jan 2024 09:51:07 +0200 Subject: [PATCH] Use UTF-8 constant in QuarkusEntryPoint --- .../java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java b/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java index 0afc6b6ec1de0..2f2de3dedad65 100644 --- a/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java +++ b/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/QuarkusEntryPoint.java @@ -10,6 +10,7 @@ import java.net.URL; import java.net.URLClassLoader; import java.net.URLDecoder; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; @@ -39,7 +40,7 @@ public static void main(String... args) throws Throwable { private static void doRun(Object args) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { String path = QuarkusEntryPoint.class.getProtectionDomain().getCodeSource().getLocation().getPath(); - String decodedPath = URLDecoder.decode(path, "UTF-8"); + String decodedPath = URLDecoder.decode(path, StandardCharsets.UTF_8); Path appRoot = new File(decodedPath).toPath().getParent().getParent().getParent(); if (Boolean.parseBoolean(System.getenv("QUARKUS_LAUNCH_DEVMODE"))) {