tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject incubator-tamaya-extensions git commit: [TAMAYA-232] Removed duplicated loop construct. [Forced Update!]
Date Sun, 29 Jan 2017 22:27:19 GMT
Repository: incubator-tamaya-extensions
Updated Branches:
  refs/heads/master e5de4a6c3 -> 310f7db65 (forced update)


[TAMAYA-232] Removed duplicated loop construct.


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/310f7db6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/tree/310f7db6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/diff/310f7db6

Branch: refs/heads/master
Commit: 310f7db6572ec71993a78528f978d8173f00e68c
Parents: b32e1c5
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sun Jan 29 22:44:50 2017 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sun Jan 29 23:27:04 2017 +0100

----------------------------------------------------------------------
 .../apache/tamaya/events/ConfigurationChangeBuilder.java    | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/310f7db6/modules/events/src/main/java/org/apache/tamaya/events/ConfigurationChangeBuilder.java
----------------------------------------------------------------------
diff --git a/modules/events/src/main/java/org/apache/tamaya/events/ConfigurationChangeBuilder.java
b/modules/events/src/main/java/org/apache/tamaya/events/ConfigurationChangeBuilder.java
index 93726d8..0194733 100644
--- a/modules/events/src/main/java/org/apache/tamaya/events/ConfigurationChangeBuilder.java
+++ b/modules/events/src/main/java/org/apache/tamaya/events/ConfigurationChangeBuilder.java
@@ -106,14 +106,7 @@ public final class ConfigurationChangeBuilder {
                 changes.add(new PropertyChangeEvent(map1, en.getKey(), val, en.getValue()));
             }
         }
-        for (Map.Entry<String, String> en : map2.getProperties().entrySet()) {
-            String val = map1.get(en.getKey());
-            if (val == null) {
-                changes.add(new PropertyChangeEvent(map1, en.getKey(), null, en.getValue()));
-            } else if (!val.equals(en.getValue())) {
-                changes.add(new PropertyChangeEvent(map1, en.getKey(), val, en.getValue()));
-            }
-        }
+
         return changes;
     }
 


Mime
View raw message