diff options
-rw-r--r-- | org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java index 573a5495a8..086763995e 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/TestUtil.java @@ -39,6 +39,7 @@ import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Plugin; import org.eclipse.jdt.apt.core.internal.AptPlugin; @@ -163,9 +164,9 @@ public class TestUtil * org.eclipse.jdt.core.tests.util.Util work around this by catching * and retrying until success. This is a convenience method to fill a * hole in the Util API. - * @return true if the file was deleted; false if there was an error or timeout + * @return an IStatus that describes if the deletion was successful */ - public static boolean deleteFile(IPath path) { + public static IStatus deleteFile(IPath path) { IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); return Util.delete(file); } |