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/02/16 22:33:48 UTC

[incubator-plc4x] branch master updated: accept subclasses for byteValue

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


The following commit(s) were added to refs/heads/master by this push:
     new c742acb  accept subclasses for byteValue
c742acb is described below

commit c742acb871de115c09c55841fb2a950c6a742e77
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Feb 16 23:33:37 2018 +0100

    accept subclasses for byteValue
---
 .../ads/src/main/java/org/apache/plc4x/java/ads/api/util/ByteValue.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/util/ByteValue.java b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/util/ByteValue.java
index 61ba37e..8e359c7 100644
--- a/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/util/ByteValue.java
+++ b/plc4j/protocols/ads/src/main/java/org/apache/plc4x/java/ads/api/util/ByteValue.java
@@ -67,7 +67,7 @@ public class ByteValue implements ByteReadable {
     @Override
     public boolean equals(Object o) {
         if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
+        if (!(o instanceof ByteValue)) return false;
 
         ByteValue byteValue = (ByteValue) o;
 

-- 
To stop receiving notification emails like this one, please contact
sruehl@apache.org.