You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/07/26 12:22:24 UTC
[incubator-plc4x] 01/02: small fix in supported data types
regarding byte[] and Byte[] mixup
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit 9221ed5b144d6a6485c92256a4e66671a159b611
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Jul 26 14:00:51 2018 +0200
small fix in supported data types regarding byte[] and Byte[] mixup
---
.../org/apache/plc4x/java/base/protocol/Plc4XSupportedDataTypes.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/protocols/driver-bases/test/src/main/java/org/apache/plc4x/java/base/protocol/Plc4XSupportedDataTypes.java b/plc4j/protocols/driver-bases/test/src/main/java/org/apache/plc4x/java/base/protocol/Plc4XSupportedDataTypes.java
index 4cf0e61..132edf5 100644
--- a/plc4j/protocols/driver-bases/test/src/main/java/org/apache/plc4x/java/base/protocol/Plc4XSupportedDataTypes.java
+++ b/plc4j/protocols/driver-bases/test/src/main/java/org/apache/plc4x/java/base/protocol/Plc4XSupportedDataTypes.java
@@ -50,7 +50,7 @@ public class Plc4XSupportedDataTypes {
littleEndianMap.put(GregorianCalendar.class, littleEndianMap.get(Calendar.class));
littleEndianMap.put(String.class, ImmutablePair.of(String.valueOf("Hello World!"), new byte[]{0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21, 0x00}));
littleEndianMap.put(byte[].class, ImmutablePair.of(new byte[]{0x1, 0x2, 0x3, 0x4}, new byte[]{0x1, 0x2, 0x3, 0x4}));
- littleEndianMap.put(Byte[].class, ImmutablePair.of(new byte[]{0x1, 0x2, 0x3, 0x4}, new byte[]{0x1, 0x2, 0x3, 0x4}));
+ littleEndianMap.put(Byte[].class, ImmutablePair.of(new Byte[]{0x1, 0x2, 0x3, 0x4}, new byte[]{0x1, 0x2, 0x3, 0x4}));
bigEndianMap = new HashMap<>();
littleEndianMap.forEach((clazz, pair) -> {
Serializable serializable = pair.getLeft();