You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by er...@apache.org on 2020/04/06 08:27:22 UTC

[plc4x] branch develop updated: Added comparing method

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new ab3d477  Added comparing method
ab3d477 is described below

commit ab3d477412f9f1f784c21bf2ee6f9352d2ab3291
Author: etiennerobinet <61...@users.noreply.github.com>
AuthorDate: Mon Apr 6 10:27:01 2020 +0200

    Added comparing method
---
 .../apache-camel/src/main/java/org/apache/plc4x/camel/TagData.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plc4j/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/TagData.java b/plc4j/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/TagData.java
index c6a0ad7..634cd6f 100644
--- a/plc4j/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/TagData.java
+++ b/plc4j/integrations/apache-camel/src/main/java/org/apache/plc4x/camel/TagData.java
@@ -66,7 +66,7 @@ public class TagData {
     @Override
     public boolean equals(Object tag){
         return ((TagData)tag).getValue()== value
-            && ((TagData)tag).getTagName()==tagName
-            && ((TagData)tag).getQuery()==query;
+            && ((TagData)tag).getTagName().equals(tagName)
+            && ((TagData)tag).getQuery().equals(query);
     }
 }