mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
[java][native] use type reference instead to fix compilation issue in JDK11 (#18346)
* use type reference instead to fix compilation issue in jdk11 * fix
This commit is contained in:
@@ -228,6 +228,4 @@ public class AuthApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ public class BodyApi {
|
||||
return new ApiResponse<File>(
|
||||
localVarResponse.statusCode(),
|
||||
localVarResponse.headers().map(),
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new GenericTypeRef<File>()) // closes the InputStream
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<File>() {}) // closes the InputStream
|
||||
);
|
||||
} finally {
|
||||
}
|
||||
@@ -497,7 +497,7 @@ public class BodyApi {
|
||||
return new ApiResponse<Pet>(
|
||||
localVarResponse.statusCode(),
|
||||
localVarResponse.headers().map(),
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new GenericTypeRef<Pet>()) // closes the InputStream
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Pet>() {}) // closes the InputStream
|
||||
);
|
||||
} finally {
|
||||
}
|
||||
@@ -653,7 +653,7 @@ public class BodyApi {
|
||||
return new ApiResponse<Pet>(
|
||||
localVarResponse.statusCode(),
|
||||
localVarResponse.headers().map(),
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new GenericTypeRef<Pet>()) // closes the InputStream
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Pet>() {}) // closes the InputStream
|
||||
);
|
||||
} finally {
|
||||
}
|
||||
@@ -809,7 +809,7 @@ public class BodyApi {
|
||||
return new ApiResponse<StringEnumRef>(
|
||||
localVarResponse.statusCode(),
|
||||
localVarResponse.headers().map(),
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new GenericTypeRef<StringEnumRef>()) // closes the InputStream
|
||||
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<StringEnumRef>() {}) // closes the InputStream
|
||||
);
|
||||
} finally {
|
||||
}
|
||||
@@ -930,6 +930,4 @@ public class BodyApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
@@ -414,6 +414,4 @@ public class FormApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
@@ -186,6 +186,4 @@ public class HeaderApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
@@ -189,6 +189,4 @@ public class PathApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
@@ -1032,6 +1032,4 @@ public class QueryApi {
|
||||
return localVarRequestBuilder;
|
||||
}
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
private static final class GenericTypeRef<T> extends TypeReference<T> {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user