From 41a33dff4072dafa31e2baaa07aac7af0cf1abfc Mon Sep 17 00:00:00 2001 From: Vince Jerald Villamora <1276544+vincejv@users.noreply.github.com> Date: Sun, 5 Nov 2023 08:51:08 +0800 Subject: [PATCH] Test 6 --- src/main/java/org/acme/GreetingResource.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/org/acme/GreetingResource.java b/src/main/java/org/acme/GreetingResource.java index 2bce92d..f1be78d 100644 --- a/src/main/java/org/acme/GreetingResource.java +++ b/src/main/java/org/acme/GreetingResource.java @@ -1,19 +1,14 @@ package org.acme; -import io.quarkus.logging.Log; import io.vertx.core.http.HttpServerResponse; import jakarta.inject.Inject; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; -import org.eclipse.microprofile.config.inject.ConfigProperty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.text.NumberFormat; import java.text.ParseException; -import java.util.Locale; @Path("/hello") public class GreetingResource { @@ -28,6 +23,7 @@ public void hello(HttpServerResponse serverResponse) throws ParseException { serverResponse.putHeader("Content-Type", "text/plain;charset=utf-8"); LOGGER.info("Locale hello() {}", beanT.getLocale()); double v = NumberFormat.getInstance(beanT.getLocale()).parse("0,27").doubleValue(); + LOGGER.info("double v: {}", v); serverResponse.send(String.valueOf(v)); } }