Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-04-28 05:12:53 -0400
committerAndrey Loskutov2017-04-28 05:46:40 -0400
commit3e04a5f355a3414aa31e51577cde700108b4349e (patch)
treefa90dcf67d623591b459d0f6644373c2388359dd /org.eclipse.debug.core
parentdca51ffc938b85ce5732b4335909deb7a4f02044 (diff)
downloadeclipse.platform.debug-3e04a5f355a3414aa31e51577cde700108b4349e.tar.gz
eclipse.platform.debug-3e04a5f355a3414aa31e51577cde700108b4349e.tar.xz
eclipse.platform.debug-3e04a5f355a3414aa31e51577cde700108b4349e.zip
Bug 515941 - code cleanup before fix
Change-Id: I972d855a75f81d61b237bfe1b4b53a8d01a4894b Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/core/sourcelookup/containers/ExternalArchiveSourceContainer.java23
1 files changed, 4 insertions, 19 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/core/sourcelookup/containers/ExternalArchiveSourceContainer.java b/org.eclipse.debug.core/core/org/eclipse/debug/core/sourcelookup/containers/ExternalArchiveSourceContainer.java
index 1ff284a11..bd1858a25 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/core/sourcelookup/containers/ExternalArchiveSourceContainer.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/core/sourcelookup/containers/ExternalArchiveSourceContainer.java
@@ -74,9 +74,7 @@ public class ExternalArchiveSourceContainer extends AbstractSourceContainer {
fDetectRoots = detectRootPaths;
}
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.sourcelookup.ISourceContainer#findSourceElements(java.lang.String)
- */
+ @SuppressWarnings("resource")
@Override
public Object[] findSourceElements(String name) throws CoreException {
String newname = name.replace('\\', '/');
@@ -224,16 +222,11 @@ public class ExternalArchiveSourceContainer extends AbstractSourceContainer {
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.sourcelookup.ISourceContainer#getName()
- */
@Override
public String getName() {
return fArchivePath;
}
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.sourcelookup.ISourceContainer#getType()
- */
+
@Override
public ISourceContainerType getType() {
return getSourceContainerType(TYPE_ID);
@@ -249,26 +242,18 @@ public class ExternalArchiveSourceContainer extends AbstractSourceContainer {
public boolean isDetectRoot() {
return fDetectRoots;
}
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
+
@Override
public boolean equals(Object obj) {
return obj instanceof ExternalArchiveSourceContainer &&
((ExternalArchiveSourceContainer)obj).getName().equals(getName());
}
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
+
@Override
public int hashCode() {
return getName().hashCode();
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.debug.core.sourcelookup.ISourceContainer#dispose()
- */
@Override
public void dispose() {
super.dispose();

Back to the top