Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-10-03 09:41:21 -0400
committerDani Megert2013-10-03 09:41:21 -0400
commit50c436f877e732cff147d63b4feb0e68019201e2 (patch)
tree056403b65f96e3f6440e7f176ef68a226d6f17e1 /org.eclipse.debug.core
parent535f3fc6e553ec5c9e0afd0e14856570088f6c40 (diff)
downloadeclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.tar.gz
eclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.tar.xz
eclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.zip
Diffstat (limited to 'org.eclipse.debug.core')
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java2
-rw-r--r--org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationComparator.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
index 90a1d53c0..1ff798226 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/BreakpointManager.java
@@ -894,7 +894,7 @@ public class BreakpointManager implements IBreakpointManager, IResourceChangeLis
private void handleProjectResourceOpenStateChange(final IResource project) {
if (!project.isAccessible()) {
//closed
- for (IBreakpoint breakpoint : (Vector<IBreakpoint>) getBreakpoints0().clone()) {
+ for (@SuppressWarnings("unchecked") IBreakpoint breakpoint : (Vector<IBreakpoint>) getBreakpoints0().clone()) {
IResource markerResource= breakpoint.getMarker().getResource();
if (project.getFullPath().isPrefixOf(markerResource.getFullPath())) {
fRemoved.add(breakpoint);
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationComparator.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationComparator.java
index 3b70de01e..270cbea4e 100644
--- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationComparator.java
+++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchConfigurationComparator.java
@@ -15,6 +15,7 @@ import java.util.Comparator;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
+
import org.eclipse.debug.core.DebugPlugin;
/**
@@ -45,7 +46,9 @@ public class LaunchConfigurationComparator implements Comparator<Object> {
protected Comparator<Object> getComparator() {
if (fDelegate == null) {
try {
- fDelegate = (Comparator<Object>) fConfigurationElement.createExecutableExtension(IConfigurationElementConstants.CLASS);
+ @SuppressWarnings("unchecked")
+ Comparator<Object> delegate = (Comparator<Object>) fConfigurationElement.createExecutableExtension(IConfigurationElementConstants.CLASS);
+ fDelegate = delegate;
} catch (CoreException e) {
DebugPlugin.log(e);
}

Back to the top