diff options
author | Eike Stepper | 2019-12-14 06:01:26 +0000 |
---|---|---|
committer | Eike Stepper | 2019-12-14 08:26:37 +0000 |
commit | fb21060053c5e2d335aedde561619bf46bff7368 (patch) | |
tree | 608e92d6da36db65475fd3c04ee4002ab949f987 /plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf | |
parent | 3057ec447b4764b8a6a9cc535e5bcc37c3e01479 (diff) | |
download | cdo-fb21060053c5e2d335aedde561619bf46bff7368.tar.gz cdo-fb21060053c5e2d335aedde561619bf46bff7368.tar.xz cdo-fb21060053c5e2d335aedde561619bf46bff7368.zip |
[Releng] Use Java 8 diamond operator where possible
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf')
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/ImportXML.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/ImportXML.java index 77d6ab7a03..b1a022dcc2 100644 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/ImportXML.java +++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/ImportXML.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012 Eike Stepper (Loehne, Germany) and others. + * Copyright (c) 2011, 2012, 2019 Eike Stepper (Loehne, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -79,7 +79,7 @@ public class ImportXML private static IRepository createRepository() { - Map<String, String> props = new HashMap<String, String>(); + Map<String, String> props = new HashMap<>(); return CDOServerUtil.createRepository(REPOSITORY_NAME, createStore(), props); } diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java index cfa2e89ae3..432f204909 100644 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java +++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/FailoverExample.java @@ -235,7 +235,7 @@ public abstract class FailoverExample protected Map<String, String> createProperties() { - Map<String, String> props = new HashMap<String, String>(); + Map<String, String> props = new HashMap<>(); props.put(IRepository.Props.OVERRIDE_UUID, name); props.put(IRepository.Props.SUPPORTING_AUDITS, "true"); props.put(IRepository.Props.SUPPORTING_BRANCHES, "true"); diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/Server.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/Server.java index 3582f67a72..81955615c1 100644 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/Server.java +++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/Server.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2013 Eike Stepper (Loehne, Germany) and others. + * Copyright (c) 2011-2013, 2019 Eike Stepper (Loehne, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -80,7 +80,7 @@ public class Server private static Map<String, String> createProperties(String name) { - Map<String, String> props = new HashMap<String, String>(); + Map<String, String> props = new HashMap<>(); props.put(IRepository.Props.OVERRIDE_UUID, name); props.put(IRepository.Props.SUPPORTING_AUDITS, "true"); props.put(IRepository.Props.SUPPORTING_BRANCHES, "true"); diff --git a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/offline/AbstractOfflineExampleServer.java b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/offline/AbstractOfflineExampleServer.java index 756b30c73d..97dddfa609 100644 --- a/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/offline/AbstractOfflineExampleServer.java +++ b/plugins/org.eclipse.emf.cdo.examples/src/org/eclipse/emf/cdo/examples/server/offline/AbstractOfflineExampleServer.java @@ -229,7 +229,7 @@ public abstract class AbstractOfflineExampleServer protected Map<String, String> createProperties() { - Map<String, String> props = new HashMap<String, String>(); + Map<String, String> props = new HashMap<>(); props.put(IRepository.Props.OVERRIDE_UUID, name); props.put(IRepository.Props.SUPPORTING_AUDITS, "true"); props.put(IRepository.Props.SUPPORTING_BRANCHES, "true"); |