Fixes incorrect Jackson imports in Java templates used in ApiClient.java when useJakartaEe=true (#18507)

* Adds useJakartaEe condition to select the appropriate Jackson package to import.

This also removes the import on the apache-httpclient template where it doesn't actually get used, requiring users to declare additional dependencies for compilation that aren't actually required by the generated code other than for import.

* Ran generate-samples.sh
This commit is contained in:
Jochem Kuijpers
2024-05-13 10:48:59 +02:00
committed by GitHub
parent cefeded745
commit 2f9b487779
6 changed files with 16 additions and 3 deletions

View File

@@ -16,7 +16,6 @@ import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JavaType;