tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: Ensured compatibility with Java 7.
Date Fri, 30 Oct 2015 16:33:05 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 72e0b9652 -> 1af37f888


Ensured compatibility with Java 7.


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

Branch: refs/heads/master
Commit: 1af37f8884de033db67d2660b205811cef484137
Parents: 72e0b96
Author: anatole <anatole@apache.org>
Authored: Fri Oct 30 17:32:56 2015 +0100
Committer: anatole <anatole@apache.org>
Committed: Fri Oct 30 17:32:56 2015 +0100

----------------------------------------------------------------------
 examples/1-minimal-example/pom.xml                               | 4 ----
 .../java/org/apache/tamaya/examples/resolver/ExampleMain.java    | 4 +++-
 2 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/1af37f88/examples/1-minimal-example/pom.xml
----------------------------------------------------------------------
diff --git a/examples/1-minimal-example/pom.xml b/examples/1-minimal-example/pom.xml
index d8ed279..f4f631d 100644
--- a/examples/1-minimal-example/pom.xml
+++ b/examples/1-minimal-example/pom.xml
@@ -30,10 +30,6 @@ under the License.
     <description>This project contains a simple example based on the core functionality
only.</description>
     <packaging>jar</packaging>
 
-    <properties>
-        <jdkVersion>1.8</jdkVersion>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>org.apache.tamaya</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/1af37f88/examples/1-minimal-example/src/main/java/org/apache/tamaya/examples/resolver/ExampleMain.java
----------------------------------------------------------------------
diff --git a/examples/1-minimal-example/src/main/java/org/apache/tamaya/examples/resolver/ExampleMain.java
b/examples/1-minimal-example/src/main/java/org/apache/tamaya/examples/resolver/ExampleMain.java
index 462b1eb..2950c10 100644
--- a/examples/1-minimal-example/src/main/java/org/apache/tamaya/examples/resolver/ExampleMain.java
+++ b/examples/1-minimal-example/src/main/java/org/apache/tamaya/examples/resolver/ExampleMain.java
@@ -50,7 +50,9 @@ public class ExampleMain {
 
     private static String dump(Map<String, String> properties) {
         StringBuilder b = new StringBuilder();
-        new TreeMap<>(properties).forEach((k, v) -> b.append("  " + k + " = " +
v + '\n'));
+        for(Map.Entry<String,String> en: new TreeMap<>(properties).entrySet())
{
+            b.append("  " + en.getKey() + " = " + en.getValue() + '\n');
+        }
         return b.toString();
     }
 }


Mime
View raw message