### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.ui.tests Index: performance/org/eclipse/jdt/ui/tests/performance/views/CleanUpPerfTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui.tests/performance/org/eclipse/jdt/ui/tests/performance/views/CleanUpPerfTest.java,v retrieving revision 1.37 diff -u -r1.37 CleanUpPerfTest.java --- performance/org/eclipse/jdt/ui/tests/performance/views/CleanUpPerfTest.java 10 Dec 2007 11:42:58 -0000 1.37 +++ performance/org/eclipse/jdt/ui/tests/performance/views/CleanUpPerfTest.java 15 May 2008 08:40:28 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2008 IBM Corporation 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 @@ -148,7 +148,20 @@ public void testNullCleanUp() throws Exception { CleanUpRefactoring cleanUpRefactoring= new CleanUpRefactoring(); addAllCUs(cleanUpRefactoring, MyTestSetup.fJProject1.getChildren()); - cleanUpRefactoring.addCleanUp(new AbstractCleanUp() {}); + cleanUpRefactoring.addCleanUp(new AbstractCleanUp() { + class ASTRequirement extends CleanUpRequirements { + public ASTRequirement() { + super(true, false, null); + } + } + + /* + * @see org.eclipse.jdt.internal.ui.fix.AbstractCleanUp#getRequirements() + */ + public CleanUpRequirements getRequirements() { + return new ASTRequirement(); + } + }); doCleanUp(cleanUpRefactoring); }