Skip to content

Commit

Permalink
fix: ignore MessageListItem::getHost in JSON serialization (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
pekam committed Feb 24, 2021
1 parent a5ccd8d commit 8ea2e52
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.time.Instant;
import java.util.Collection;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
Expand Down Expand Up @@ -266,6 +267,7 @@ void setHost(MessageList host) {
this.host = host;
}

@JsonIgnore
MessageList getHost() {
return host;
}
Expand Down

0 comments on commit 8ea2e52

Please sign in to comment.