Skip to content

Commit

Permalink
quarkusio#36594 add @RegisterForReflection
Browse files Browse the repository at this point in the history
  • Loading branch information
humcqc committed Jan 31, 2024
1 parent 43edc3c commit f8b820e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public DogDto2(String name, PersonDto2 owner) {
}

@NestedProjectedClass
@RegisterForReflection
public static class PersonDto2 {
public String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public PersonDTO(String uniqueName, String name, AddressDTO address, Description
}

@NestedProjectedClass
@RegisterForReflection
public static class AddressDTO implements Comparable<AddressDTO> {

// Simple field with automatic mapping in constructor
Expand All @@ -41,6 +42,7 @@ public int compareTo(AddressDTO address) {
}

@NestedProjectedClass
@RegisterForReflection
public static class DescriptionDTO {
private final String description;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public DogDto(String name, PersonDto owner) {
}

@NestedProjectedClass
@RegisterForReflection
public static class PersonDto {
public String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public PersonDTO(String uniqueName, String name, AddressDTO address, Description
}

@NestedProjectedClass
@RegisterForReflection
public static class AddressDTO implements Comparable<AddressDTO> {

public final String street;
Expand All @@ -38,6 +39,7 @@ public int compareTo(AddressDTO address) {
}

@NestedProjectedClass
@RegisterForReflection
public static class DescriptionDTO {
private final String description;

Expand Down

0 comments on commit f8b820e

Please sign in to comment.