Skip to content

Commit

Permalink
Moving JsonProperty declaration to getters to avoid duplicate fetch i…
Browse files Browse the repository at this point in the history
…n serialization/deserialization scenarios
  • Loading branch information
payneBrandon committed Dec 27, 2023
1 parent 760c581 commit de3d256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
public class NodeSetXY extends Asn1Object {
private static final long serialVersionUID = 1L;

@JsonProperty("NodeXY")
private NodeXY[] NodeXY;

@JsonProperty("NodeXY")
public NodeXY[] getNodeXY() {
return NodeXY;
}

public void setNodeXY(NodeXY[] nodeXY) {
this.NodeXY = nodeXY;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
public class Nodes extends Asn1Object {

private static final long serialVersionUID = 1L;
@JsonProperty("NodeLL")
private NodeLL[] nodeLL;

@JsonProperty("NodeXY")
private NodeXY[] nodeXY;


@JsonProperty("NodeLL")
public NodeLL[] getNodeLL() {
return nodeLL;
}
Expand Down

0 comments on commit de3d256

Please sign in to comment.