Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spring] remove deprecated annotation from no-args constructor (fix #15478) #15512

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
{{#generatedConstructorWithRequiredArgs}}
{{#hasRequired}}

/**
* Default constructor
* @deprecated Use {@link {{classname}}#{{classname}}({{#requiredVars}}{{{datatypeWithEnum}}}{{^-last}}, {{/-last}}{{/requiredVars}})}
*/
@Deprecated
public {{classname}}() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ public class Pet {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private LocalDate dateOfBirth = LocalDate.parse("2021-01-01");

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ public class Animal {

private String color = "red";

/**
* Default constructor
* @deprecated Use {@link Animal#Animal(String)}
*/
@Deprecated
public Animal() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ public static KindEnum fromValue(String value) {

private KindEnum kind;

/**
* Default constructor
* @deprecated Use {@link BigCat#BigCat(String)}
*/
@Deprecated
public BigCat() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public class Cat extends Animal {

private Boolean declawed;

/**
* Default constructor
* @deprecated Use {@link Cat#Cat(String)}
*/
@Deprecated
public Cat() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ public class Category {

private String name = "default-name";

/**
* Default constructor
* @deprecated Use {@link Category#Category(String)}
*/
@Deprecated
public Category() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public class ContainerDefaultValue {

private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();

/**
* Default constructor
* @deprecated Use {@link ContainerDefaultValue#ContainerDefaultValue(List<String>, List<String>)}
*/
@Deprecated
public ContainerDefaultValue() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ public class Dog extends Animal {

private String breed;

/**
* Default constructor
* @deprecated Use {@link Dog#Dog(String)}
*/
@Deprecated
public Dog() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,6 @@ public static EnumNumberEnum fromValue(Double value) {

private OuterEnum outerEnum;

/**
* Default constructor
* @deprecated Use {@link EnumTest#EnumTest(EnumStringRequiredEnum)}
*/
@Deprecated
public EnumTest() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public class FormatTest {

private BigDecimal bigDecimal;

/**
* Default constructor
* @deprecated Use {@link FormatTest#FormatTest(BigDecimal, byte[], LocalDate, String)}
*/
@Deprecated
public FormatTest() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ public class Name {

private Integer _123number;

/**
* Default constructor
* @deprecated Use {@link Name#Name(Integer)}
*/
@Deprecated
public Name() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, Set<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public class TypeHolderDefault {

private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));

/**
* Default constructor
* @deprecated Use {@link TypeHolderDefault#TypeHolderDefault(String, BigDecimal, Integer, Boolean, List<Integer>)}
*/
@Deprecated
public TypeHolderDefault() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public class TypeHolderExample {

private List<Integer> arrayItem = new ArrayList<>();

/**
* Default constructor
* @deprecated Use {@link TypeHolderExample#TypeHolderExample(String, BigDecimal, Float, Integer, Boolean, List<Integer>)}
*/
@Deprecated
public TypeHolderExample() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ public class Pet {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private LocalDate dateOfBirth = LocalDate.parse("2021-01-01");

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

/**
* Default constructor
* @deprecated Use {@link Pet#Pet(String, List<String>)}
*/
@Deprecated
public Pet() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public class Bar extends Entity implements BarRefOrValue {

private FooRefOrValue foo;

/**
* Default constructor
* @deprecated Use {@link Bar#Bar(String, String)}
*/
@Deprecated
public Bar() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ public class BarCreate extends Entity {

private FooRefOrValue foo;

/**
* Default constructor
* @deprecated Use {@link BarCreate#BarCreate(String)}
*/
@Deprecated
public BarCreate() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class BarRef extends EntityRef implements BarRefOrValue {

/**
* Default constructor
* @deprecated Use {@link BarRef#BarRef(String)}
*/
@Deprecated
public BarRef() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public class Entity {

private String atType;

/**
* Default constructor
* @deprecated Use {@link Entity#Entity(String)}
*/
@Deprecated
public Entity() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ public class EntityRef {

private String atType;

/**
* Default constructor
* @deprecated Use {@link EntityRef#EntityRef(String)}
*/
@Deprecated
public EntityRef() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ public class Extensible {

private String atType;

/**
* Default constructor
* @deprecated Use {@link Extensible#Extensible(String)}
*/
@Deprecated
public Extensible() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ public class Foo extends Entity implements FooRefOrValue {

private String fooPropB;

/**
* Default constructor
* @deprecated Use {@link Foo#Foo(String)}
*/
@Deprecated
public Foo() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public class FooRef extends EntityRef implements FooRefOrValue {

private String foorefPropA;

/**
* Default constructor
* @deprecated Use {@link FooRef#FooRef(String)}
*/
@Deprecated
public FooRef() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public class Pasta extends Entity {

private String vendor;

/**
* Default constructor
* @deprecated Use {@link Pasta#Pasta(String)}
*/
@Deprecated
public Pasta() {
super();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ public class Pizza extends Entity {

private BigDecimal pizzaSize;

/**
* Default constructor
* @deprecated Use {@link Pizza#Pizza(String)}
*/
@Deprecated
public Pizza() {
super();
}
Expand Down
Loading