mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
cosmetics: @Override, generics etc
This commit is contained in:
parent
930419d9c2
commit
9f09d04566
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2007 Intel Corporation and others.
|
* Copyright (c) 2010 Intel Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -20,19 +20,21 @@ import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
public class BasicTestCase extends TestCase {
|
public class BasicTestCase extends TestCase {
|
||||||
private List fProjList = new LinkedList();
|
private List<IProject> fProjList = new LinkedList<IProject>();
|
||||||
|
|
||||||
protected void addProject(IProject project){
|
protected void addProject(IProject project){
|
||||||
fProjList.add(project);
|
fProjList.add(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
for(Iterator iter = fProjList.iterator(); iter.hasNext();){
|
for(Iterator<IProject> iter = fProjList.iterator(); iter.hasNext();){
|
||||||
IProject proj = (IProject)iter.next();
|
IProject proj = iter.next();
|
||||||
try {
|
try {
|
||||||
proj.delete(true, null);
|
proj.delete(true, null);
|
||||||
} catch (CoreException e){
|
} catch (CoreException e){
|
||||||
|
|
Loading…
Add table
Reference in a new issue