/**********************************************************************
* Copyright (c) 2012 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
* http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
+ *
+ * Contributors:
* Bernd Hufmann - Initial API and implementation
**********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs;
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.IAddContextDialog;
/**
- * Add Context dialog stub.
+ * Add Context dialog stub.
*/
+@SuppressWarnings("javadoc")
public class AddContextDialogStub implements IAddContextDialog {
private Set<String> fAvailableContexts = null;
public void setContexts(List<String> contexts) throws IllegalArgumentException{
fContexts = new ArrayList<String>();
fContexts.addAll(contexts);
- // If availableContexts are null we cannot verify
+ // If availableContexts are null we cannot verify
if (fAvailableContexts != null) {
for (Iterator<String> iterator = fContexts.iterator(); iterator.hasNext();) {
- String string = (String) iterator.next();
+ String string = iterator.next();
if (!fAvailableContexts.contains(string)) {
throw new IllegalArgumentException();
}