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 2018/08/13 07:32:20 UTC

[incubator-plc4x] branch master updated: Fixed a typo

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 68b0388  Fixed a typo
68b0388 is described below

commit 68b0388d97afc11caa8ee92a8dfb68de67461db7
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Mon Aug 13 09:32:15 2018 +0200

    Fixed a typo
---
 .../java/org/apache/plc4x/java/api/messages/items/ReadResponseItem.java | 2 +-
 .../test/java/org/apache/plc4x/java/api/connection/PlcReaderTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/ReadResponseItem.java b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/ReadResponseItem.java
index 1e8e601..72dbdb0 100644
--- a/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/ReadResponseItem.java
+++ b/plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/items/ReadResponseItem.java
@@ -39,7 +39,7 @@ public class ReadResponseItem<T> extends ResponseItem<ReadRequestItem<T>> {
         Objects.requireNonNull(values, "Values must not be null");
         for (T value : values) {
             if (!requestItem.getDatatype().isAssignableFrom(value.getClass())) {
-                throw new IllegalArgumentException("Datatype of " + value + " doesn't macht required datatype of " + requestItem.getDatatype());
+                throw new IllegalArgumentException("Datatype of " + value + " doesn't match required datatype of " + requestItem.getDatatype());
             }
         }
         this.values = values;
diff --git a/plc4j/api/src/test/java/org/apache/plc4x/java/api/connection/PlcReaderTest.java b/plc4j/api/src/test/java/org/apache/plc4x/java/api/connection/PlcReaderTest.java
index e97c288..368286f 100644
--- a/plc4j/api/src/test/java/org/apache/plc4x/java/api/connection/PlcReaderTest.java
+++ b/plc4j/api/src/test/java/org/apache/plc4x/java/api/connection/PlcReaderTest.java
@@ -51,7 +51,7 @@ public class PlcReaderTest {
                 .read(new TypeSafePlcReadRequest<>(String.class, mock(Address.class))).get();
             fail("Should throw an exception");
         } catch (IllegalArgumentException e) {
-            assertThat(e.getMessage(), equalTo("Datatype of 1 doesn't macht required datatype of class java.lang.String"));
+            assertThat(e.getMessage(), equalTo("Datatype of 1 doesn't match required datatype of class java.lang.String"));
         } catch (ExecutionException e) {
             assertThat(e.getCause(), instanceOf(IllegalArgumentException.class));
             assertThat(e.getCause().getMessage(), equalTo("Unexpected data type class java.lang.Integer on readRequestItem. Expected class java.lang.String"));