diff options
Diffstat (limited to 'org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java')
-rw-r--r-- | org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java index 9936e8231..a14b759e6 100644 --- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java +++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/DebugFileStore.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 IBM Corporation and others. + * Copyright (c) 2008, 2018 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 @@ -42,9 +42,6 @@ public class DebugFileStore extends FileStore { */ class DebugOutputStream extends ByteArrayOutputStream { - /* (non-Javadoc) - * @see java.io.ByteArrayOutputStream#close() - */ @Override public void close() throws IOException { super.close(); @@ -59,13 +56,10 @@ public class DebugFileStore extends FileStore { uri = id; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#childNames(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public String[] childNames(int options, IProgressMonitor monitor) throws CoreException { URI[] uris = DebugFileSystem.getDefault().getFileURIs(); - List<String> children = new ArrayList<String>(); + List<String> children = new ArrayList<>(); IPath me = getPath(); for (int i = 0; i < uris.length; i++) { URI id = uris[i]; @@ -79,9 +73,6 @@ public class DebugFileStore extends FileStore { return children.toArray(new String[children.size()]); } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#fetchInfo(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException { byte[] contents = DebugFileSystem.getDefault().getContents(toURI()); @@ -102,9 +93,6 @@ public class DebugFileStore extends FileStore { return info; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#getChild(java.lang.String) - */ @Override public IFileStore getChild(String name) { try { @@ -114,9 +102,6 @@ public class DebugFileStore extends FileStore { return null; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#getName() - */ @Override public String getName() { IPath path = getPath(); @@ -126,18 +111,12 @@ public class DebugFileStore extends FileStore { return ""; //$NON-NLS-1$ } - /** - * @return - */ private IPath getPath() { URI me = toURI(); IPath path = new Path(me.getPath()); return path; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#getParent() - */ @Override public IFileStore getParent() { IPath path = getPath(); @@ -150,9 +129,6 @@ public class DebugFileStore extends FileStore { return null; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#openInputStream(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException { byte[] contents = DebugFileSystem.getDefault().getContents(toURI()); @@ -163,17 +139,11 @@ public class DebugFileStore extends FileStore { "File does not exist: " + toURI())); //$NON-NLS-1$ } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#openOutputStream(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException { return new DebugOutputStream(); } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#mkdir(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public IFileStore mkdir(int options, IProgressMonitor monitor) throws CoreException { IFileInfo info = fetchInfo(); @@ -198,17 +168,11 @@ public class DebugFileStore extends FileStore { return this; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#toURI() - */ @Override public URI toURI() { return uri; } - /* (non-Javadoc) - * @see org.eclipse.core.filesystem.provider.FileStore#delete(int, org.eclipse.core.runtime.IProgressMonitor) - */ @Override public void delete(int options, IProgressMonitor monitor) throws CoreException { DebugFileSystem.getDefault().delete(toURI()); |