/**********************************************************************
- * Copyright (c) 2012, 2013 Ericsson
+ * Copyright (c) 2012, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
/**
* The contexts to add.
*/
- private final List<String> fSelectedContexts = new ArrayList<String>();
+ private final List<String> fSelectedContexts = new ArrayList<>();
// ------------------------------------------------------------------------
// Constructors
@Override
public List<String> getContexts() {
- List<String> ret = new ArrayList<String>();
+ List<String> ret = new ArrayList<>();
ret.addAll(fSelectedContexts);
return ret;
}
* The contexts to set
*/
public void setAvalibleContexts(List<String> contexts) {
- fAvailableContexts = new ArrayList<Context>();
+ fAvailableContexts = new ArrayList<>();
if (contexts != null) {
for (Iterator<String> iterator = contexts.iterator(); iterator.hasNext();) {
String name = iterator.next();