/**********************************************************************
- * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
+ * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
* 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
/**
* Map for caching information (view ID to loader class)
*/
- private Map<String, IUml2SDLoader> fViewLoaderMap = new HashMap<String, IUml2SDLoader>();
+ private Map<String, IUml2SDLoader> fViewLoaderMap = new HashMap<>();
/**
* Map for caching information (view ID to list of configuration elements)
*/
- private Map<String, ArrayList<IConfigurationElement>> fViewLoadersList = new HashMap<String, ArrayList<IConfigurationElement>>();
+ private Map<String, ArrayList<IConfigurationElement>> fViewLoadersList = new HashMap<>();
// ------------------------------------------------------------------------
// Constructor
*
* @return the manager instance
*/
- public synchronized static LoadersManager getInstance() {
+ public static synchronized LoadersManager getInstance() {
if (fLoadersManager == null) {
fLoadersManager = new LoadersManager();
}
return list;
}
- ArrayList<IConfigurationElement> ret = new ArrayList<IConfigurationElement>();
+ ArrayList<IConfigurationElement> ret = new ArrayList<>();
IExtensionPoint iep = Platform.getExtensionRegistry().getExtensionPoint(Activator.PLUGIN_ID, LOADER_TAG);
if (iep == null) {
return ret;