Skip to content

Commit

Permalink
fix jackson issues
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Jan 20, 2024
1 parent 79b71fd commit 01e43a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/comroid/api/data/seri/DataStructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,13 @@ public static abstract class Member implements Named, AnnotatedElement, java.lan
@Getter
@NotNull
Set<String> aliases = new HashSet<>();
@Getter
@NotNull
@ToString.Exclude
@Getter(onMethod = @__(@JsonIgnore))
AnnotatedElement context;
@NotNull
@ToString.Exclude
@Getter(onMethod = @__(@JsonIgnore))
Set<Result<?>> annotations = new HashSet<>();
@Getter
@NotNull Class<?> declaringClass;
Expand Down Expand Up @@ -280,12 +281,14 @@ public String getAlternateName() {

@Ignore
@Override
@JsonIgnore
public Annotation[] getAnnotations() {
return streamAnnotations(Annotation.class).toArray(Annotation[]::new);
}

@Ignore
@Override
@JsonIgnore
public Annotation[] getDeclaredAnnotations() {
return streamAnnotations(Annotation.class)
.filter(result -> result.getContext().equals(context))
Expand Down Expand Up @@ -325,6 +328,7 @@ public String toString() {
public class Constructor extends Member {
@NotNull
@ToString.Exclude
@Getter(onMethod = @__(@JsonIgnore))
List<Parameter> args;
@NotNull
@ToString.Exclude
Expand Down

0 comments on commit 01e43a0

Please sign in to comment.