Skip to content

Commit

Permalink
Test 6
Browse files Browse the repository at this point in the history
  • Loading branch information
vincejv committed Nov 5, 2023
1 parent a93403e commit 41a33df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/acme/GreetingResource.java
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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));
}
}

0 comments on commit 41a33df

Please sign in to comment.