Created
August 28, 2019 20:45
-
-
Save jameskyle/818a404beaaf3f97420ababc94a44e09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No symbol found is thrown for example.getBroken(), but not for example.getWorking().