[Java][Jersey/Native/okhttp] don't override x-implements (#12410)

This commit is contained in:
Oleh Kurpiak 2022-06-20 02:02:27 -07:00 committed by GitHub
parent 995f7ced13
commit 1440a68974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,8 +975,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
cm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());
if (JERSEY2.equals(getLibrary()) || JERSEY3.equals(getLibrary()) || NATIVE.equals(getLibrary()) || OKHTTP_GSON.equals(getLibrary())) {
cm.getVendorExtensions().put("x-implements", new ArrayList<String>());
if (cm.oneOf != null && !cm.oneOf.isEmpty() && cm.oneOf.contains("ModelNull")) {
// if oneOf contains "null" type
cm.isNullable = true;