[code] indicate replacement methods in the javadoc (#3329)

See PR #2946
This commit is contained in:
Jérémie Bresson 2019-07-11 05:14:27 +02:00 committed by Jim Schubert
parent 14f611d159
commit 15f8c2c78b

View File

@ -19,6 +19,7 @@ package org.openapitools.codegen;
import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.parser.core.models.AuthorizationValue; import io.swagger.v3.parser.core.models.AuthorizationValue;
import org.openapitools.codegen.auth.AuthParser; import org.openapitools.codegen.auth.AuthParser;
import java.util.List; import java.util.List;
@ -64,6 +65,10 @@ public class ClientOptInput {
return config; return config;
} }
/**
* @deprecated use {@link #config(CodegenConfig)} instead
* @param config codegen config
*/
@Deprecated @Deprecated
public void setConfig(CodegenConfig config) { public void setConfig(CodegenConfig config) {
this.config = config; this.config = config;
@ -74,6 +79,10 @@ public class ClientOptInput {
return openAPI; return openAPI;
} }
/**
* @deprecated use {@link #openAPI(OpenAPI)} instead
* @param openAPI the specification
*/
@Deprecated @Deprecated
public void setOpenAPI(OpenAPI openAPI) { public void setOpenAPI(OpenAPI openAPI) {
this.openAPI = openAPI; this.openAPI = openAPI;