Skip to content

Commit

Permalink
Merge pull request #43108 from gsmet/shared-jsonprovider
Browse files Browse the repository at this point in the history
Use the shared JsonProvider when creating Jsonb instance
  • Loading branch information
geoand authored Sep 9, 2024
2 parents 47db797 + 909e24d commit ff9b902
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import io.quarkus.arc.All;
import io.quarkus.arc.DefaultBean;
import io.quarkus.jsonp.JsonProviderHolder;

@Singleton
public class JsonbProducer {
Expand All @@ -30,6 +31,6 @@ public JsonbConfig jsonbConfig(@All List<JsonbConfigCustomizer> customizers) {
@Singleton
@DefaultBean
public Jsonb jsonb(JsonbConfig jsonbConfig) {
return JsonbBuilder.create(jsonbConfig);
return JsonbBuilder.newBuilder().withProvider(JsonProviderHolder.jsonProvider()).withConfig(jsonbConfig).build();
}
}

0 comments on commit ff9b902

Please sign in to comment.