tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: TAMAYA-172: Fixed invalid comparison of PropertyValue with String.
Date Sun, 11 Sep 2016 20:16:22 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 57934fdff -> 9d976304c


TAMAYA-172: Fixed invalid comparison of PropertyValue with String.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/9d976304
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/9d976304
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/9d976304

Branch: refs/heads/master
Commit: 9d976304caa82e9b9f8fb46ca796d28056ccdb19
Parents: 57934fd
Author: anatole <anatole@apache.org>
Authored: Sun Sep 11 22:16:07 2016 +0200
Committer: anatole <anatole@apache.org>
Committed: Sun Sep 11 22:16:07 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/tamaya/events/PropertySourceChangeBuilder.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/9d976304/modules/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
----------------------------------------------------------------------
diff --git a/modules/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
b/modules/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
index fa2cf5e..b7a4483 100644
--- a/modules/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
+++ b/modules/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
@@ -99,7 +99,7 @@ public final class PropertySourceChangeBuilder {
             PropertyValue val = map2.get(en.getKey());
             if (val == null) {
                 changes.add(new PropertyChangeEvent(map1, en.getKey(), null, en.getValue()));
-            } else if (!val.equals(en.getValue())) {
+            } else if (!val.getValue().equals(en.getValue())) {
                 changes.add(new PropertyChangeEvent(map1, en.getKey(), val.getValue(), en.getValue()));
             }
         }


Mime
View raw message