You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2018/11/19 22:55:08 UTC
[3/3] incubator-tamaya git commit: Fixed issue,
where default keys of a property source snapshot does not container
any keys.
Fixed issue, where default keys of a property source snapshot does not container any keys.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/54d50a89
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/54d50a89
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/54d50a89
Branch: refs/heads/master
Commit: 54d50a89aad87adf53f73a993cce752a3d27c8b3
Parents: 8accb1d
Author: Anatole Tresch <at...@gmail.com>
Authored: Mon Nov 19 23:54:08 2018 +0100
Committer: Anatole Tresch <at...@gmail.com>
Committed: Mon Nov 19 23:54:08 2018 +0100
----------------------------------------------------------------------
.../apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/54d50a89/code/spi-support/src/main/java/org/apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java
----------------------------------------------------------------------
diff --git a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java
index 7c14f5a..a18a53c 100644
--- a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java
+++ b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/DefaultPropertySourceSnapshot.java
@@ -72,7 +72,7 @@ public class DefaultPropertySourceSnapshot implements PropertySource, Serializab
this.keys.add(k);
}
if(this.keys.isEmpty()){
- this.keys.addAll(getProperties().keySet());
+ this.keys.addAll(propertySource.getProperties().keySet());
}
this.keys = Collections.unmodifiableSet(this.keys);
this.ordinal = PropertySourceComparator.getOrdinal(propertySource);