tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [2/2] incubator-tamaya-extensions git commit: [TAMAYA-243] Improved code layout.
Date Sun, 26 Feb 2017 10:35:46 GMT
[TAMAYA-243] Improved code layout.


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

Branch: refs/heads/master
Commit: 507e21ed8212d733144f5275cca9392c95080244
Parents: 200660c
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sun Feb 26 11:35:22 2017 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sun Feb 26 11:35:22 2017 +0100

----------------------------------------------------------------------
 .../tamaya/events/internal/DefaultConfigChangeObserver.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-extensions/blob/507e21ed/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
----------------------------------------------------------------------
diff --git a/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
b/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
index 30005fa..e87a748 100644
--- a/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
+++ b/modules/events/src/main/java/org/apache/tamaya/events/internal/DefaultConfigChangeObserver.java
@@ -63,12 +63,13 @@ public class DefaultConfigChangeObserver {
         LOG.finest("Checking configuration for changes...");
         FrozenConfiguration frozenConfig = FrozenConfiguration.of(ConfigurationProvider.getConfiguration());
         ConfigurationChange changes;
-        if(lastConfig==null){
+
+        if (lastConfig == null) {
             changes = ConfigurationChangeBuilder.of().putAll(frozenConfig.getProperties())
-                    .build();
-        }else{
+                                                .build();
+        } else {
             changes = ConfigurationChangeBuilder.of(lastConfig).addChanges(frozenConfig)
-                    .build();
+                                                .build();
         }
 
         lastConfig = frozenConfig;


Mime
View raw message