tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject [04/14] tomee git commit: diamond operator
Date Mon, 03 Dec 2018 03:34:53 GMT
diamond operator


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/365efa62
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/365efa62
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/365efa62

Branch: refs/heads/master
Commit: 365efa626bebd4a1b6655f4009cc99c6718b2306
Parents: 63fbe19
Author: Hayri Cicek <hayricicek@Hayris-MBP.lan>
Authored: Sun Sep 16 00:52:25 2018 +0200
Committer: Hayri Cicek <hayricicek@Hayris-MBP.lan>
Committed: Sun Sep 16 00:52:25 2018 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/tomee/webapp/installer/Common.java    | 2 +-
 .../src/main/java/org/apache/tomee/webapp/installer/Runner.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/365efa62/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Common.java
----------------------------------------------------------------------
diff --git a/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Common.java
b/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Common.java
index c1760d9..7803160 100644
--- a/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Common.java
+++ b/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Common.java
@@ -24,7 +24,7 @@ import java.util.Map;
 public class Common {
 
     public static Map<String, String> build(final String key, final String value) {
-        final Map<String, String> result = new HashMap<String, String>();
+        final Map<String, String> result = new HashMap<>();
         result.put("key", key);
         result.put("value", value);
         return result;

http://git-wip-us.apache.org/repos/asf/tomee/blob/365efa62/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Runner.java
----------------------------------------------------------------------
diff --git a/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Runner.java
b/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Runner.java
index be57731..dfeccf5 100644
--- a/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Runner.java
+++ b/tomee/tomee-webapp/src/main/java/org/apache/tomee/webapp/installer/Runner.java
@@ -78,7 +78,7 @@ public class Runner {
         if (paths.verify() && install) {
             installer.installAll();
         }
-        installerResults = new ArrayList<Map<String, String>>();
+        installerResults = new ArrayList<>();
         installerResults.add(Common.build("catalinaHomeDir", String.valueOf(catalinaHome)));
         installerResults.add(Common.build("catalinaBaseDir", String.valueOf(catalinaBase)));
         installerResults.add(Common.build("serverXmlFile", String.valueOf(serverXmlFile)));


Mime
View raw message