tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [50/50] [abbrv] incubator-tamaya-extensions git commit: TAMAYA-172: Fixed invalid comparison of PropertyValue with String.
Date Fri, 16 Sep 2016 22:04:00 GMT
TAMAYA-172: Fixed invalid comparison of PropertyValue with String.


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

Branch: refs/heads/master
Commit: 681f275e5bd4076ac54cc09487b764e3cc01a21f
Parents: 8dbb52c
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-extensions/blob/681f275e/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
----------------------------------------------------------------------
diff --git a/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
b/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
index fa2cf5e..b7a4483 100644
--- a/events/src/main/java/org/apache/tamaya/events/PropertySourceChangeBuilder.java
+++ b/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