From de3d2560d25bcc95c8c768bf24d5422b502ffc97 Mon Sep 17 00:00:00 2001 From: Brandon Payne Date: Wed, 27 Dec 2023 10:11:58 -0700 Subject: [PATCH] Moving JsonProperty declaration to getters to avoid duplicate fetch in serialization/deserialization scenarios --- .../us/dot/its/jpo/ode/plugin/j2735/timstorage/NodeSetXY.java | 4 +--- .../us/dot/its/jpo/ode/plugin/j2735/timstorage/Nodes.java | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/NodeSetXY.java b/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/NodeSetXY.java index 0e06deaac..eb01bd927 100644 --- a/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/NodeSetXY.java +++ b/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/NodeSetXY.java @@ -7,9 +7,9 @@ public class NodeSetXY extends Asn1Object { private static final long serialVersionUID = 1L; - @JsonProperty("NodeXY") private NodeXY[] NodeXY; + @JsonProperty("NodeXY") public NodeXY[] getNodeXY() { return NodeXY; } @@ -17,6 +17,4 @@ public NodeXY[] getNodeXY() { public void setNodeXY(NodeXY[] nodeXY) { this.NodeXY = nodeXY; } - - } diff --git a/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/Nodes.java b/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/Nodes.java index f0eb2c90f..5a86763fa 100644 --- a/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/Nodes.java +++ b/jpo-ode-plugins/src/main/java/us/dot/its/jpo/ode/plugin/j2735/timstorage/Nodes.java @@ -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; }