Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-10-03 13:41:21 +0000
committerDani Megert2013-10-03 13:41:21 +0000
commit50c436f877e732cff147d63b4feb0e68019201e2 (patch)
tree056403b65f96e3f6440e7f176ef68a226d6f17e1
parent535f3fc6e553ec5c9e0afd0e14856570088f6c40 (diff)
downloadeclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.tar.gz
eclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.tar.xz
eclipse.platform.debug-50c436f877e732cff147d63b4feb0e68019201e2.zip
-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
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchPerspectivePreferencePage.java4
3 files changed, 7 insertions, 4 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);
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchPerspectivePreferencePage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchPerspectivePreferencePage.java
index da59e7f0f..7cf6dba78 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchPerspectivePreferencePage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/LaunchPerspectivePreferencePage.java
@@ -226,7 +226,6 @@ public class LaunchPerspectivePreferencePage extends PreferencePage implements I
LaunchDelegate delegate = null;
ILaunchConfigurationType type = null;
PerspectiveChange change = null;
- Set<String> modes = null;
for (Iterator<Object> iter = fgCurrentWorkingContext.iterator(); iter.hasNext();) {
o = iter.next();
if(o instanceof ILaunchDelegate) {
@@ -237,7 +236,8 @@ public class LaunchPerspectivePreferencePage extends PreferencePage implements I
delegate = null;
type = (ILaunchConfigurationType) o;
}
- modes = (Set<String>) combo.getData();
+ @SuppressWarnings("unchecked")
+ Set<String> modes = (Set<String>) combo.getData();
change = findChange(type, delegate, modes);
if(change == null) {
change = new PerspectiveChange(type, delegate, modes, fgPerspectiveIdMap.get(combo.getText()));

Back to the top