tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otavioj...@apache.org
Subject [1/2] incubator-tamaya git commit: using method refence in ConfigFunctions
Date Sun, 14 Dec 2014 23:13:42 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 1af5a7db6 -> 9ac2684f8


using method refence in ConfigFunctions


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

Branch: refs/heads/master
Commit: 1e6c88cc9195fc219da23afbbd45f375f87afe60
Parents: 1af5a7d
Author: otaviojava <otaviojava@people.apache.org>
Authored: Sun Dec 14 21:09:38 2014 -0200
Committer: otaviojava <otaviojava@people.apache.org>
Committed: Sun Dec 14 21:09:38 2014 -0200

----------------------------------------------------------------------
 .../main/java/org/apache/tamaya/core/config/ConfigFunctions.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/1e6c88cc/core/src/main/java/org/apache/tamaya/core/config/ConfigFunctions.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/tamaya/core/config/ConfigFunctions.java b/core/src/main/java/org/apache/tamaya/core/config/ConfigFunctions.java
index e28da5e..f46473a 100644
--- a/core/src/main/java/org/apache/tamaya/core/config/ConfigFunctions.java
+++ b/core/src/main/java/org/apache/tamaya/core/config/ConfigFunctions.java
@@ -63,7 +63,7 @@ public final class ConfigFunctions {
                             .filter(e -> isKeyInArea(e.getKey(), areaKey))
                             .collect(Collectors.toMap(
                                     e -> stripKeys ? e.getKey().substring(areaKey.length()
+ 1) : e.getKey(),
-                                    e -> e.getValue())));
+                                    Map.Entry::getValue)));
             return PropertySourceBuilder.create("area: " + areaKey).addMap(area).build().toConfiguration();
         };
     }
@@ -110,7 +110,7 @@ public final class ConfigFunctions {
                             .filter(e -> e.getKey().startsWith(lookupKey))
                             .collect(Collectors.toMap(
                                     e -> stripKeys ? e.getKey().substring(areaKey.length()
+ 1) : e.getKey(),
-                                    e -> e.getValue())));
+                                    Map.Entry::getValue)));
             return PropertySourceBuilder.create("area (recursive): " + areaKey).addMap(area).build().toConfiguration();
         };
     }


Mime
View raw message