From 2cf47f6e378ed01e75e58fff9e3cfe9b1c6a7a46 Mon Sep 17 00:00:00 2001 From: Brandon Payne Date: Wed, 27 Dec 2023 10:23:15 -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, 4 insertions(+), 4 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..4980d6304 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; } 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; }