You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2022/08/31 14:40:46 UTC

[plc4x] 02/03: fix(plc4j/spi): Added the missing "getObject" method to the PlcStruct

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 386189f4ddcedddb6c98aa105ec2927ff30289c5
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Aug 31 16:39:13 2022 +0200

    fix(plc4j/spi): Added the missing "getObject" method to the PlcStruct
---
 .../src/main/java/org/apache/plc4x/java/spi/values/PlcStruct.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcStruct.java b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcStruct.java
index 055ffb481..77f6c12b3 100644
--- a/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcStruct.java
+++ b/plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcStruct.java
@@ -39,6 +39,11 @@ public class PlcStruct extends PlcValueAdapter {
 
     private final Map<String, PlcValue> map;
 
+    @Override
+    public Object getObject() {
+        return map;
+    }
+
     @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
     public PlcStruct(@JsonProperty("map") Map<String, PlcValue> map) {
         this.map = Collections.unmodifiableMap(map);