Skip to content

Instantly share code, notes, and snippets.

@jameskyle
Created August 28, 2019 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameskyle/818a404beaaf3f97420ababc94a44e09 to your computer and use it in GitHub Desktop.
Save jameskyle/818a404beaaf3f97420ababc94a44e09 to your computer and use it in GitHub Desktop.
@JsonIgnoreProperties(ignoreUnknown = true)
@Value
public class JsonExample {
@NonFinal
@JsonView(SerializedViews.Response.class)
boolean broken;
@NonFinal
@JsonView(SerializedViews.Response.class)
Boolean working;
@JsonCreator
public DispatchResult(
@JsonProperty("broken") boolean broken,
@JsonProperty("working") Boolean working) {
this.broken = broken;
this.working = working;
}
}
@jameskyle
Copy link
Author

No symbol found is thrown for example.getBroken(), but not for example.getWorking().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment