generics
diff --git a/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/InternalScriptInterpreterPreferenceBlock.java b/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/InternalScriptInterpreterPreferenceBlock.java
index 22a1e9e..f464c38 100644
--- a/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/InternalScriptInterpreterPreferenceBlock.java
+++ b/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/interpreters/InternalScriptInterpreterPreferenceBlock.java
@@ -11,6 +11,7 @@
import org.eclipse.dltk.ui.preferences.ComboViewerBlock;
import org.eclipse.dltk.ui.preferences.ImprovedAbstractConfigurationBlock;
import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore;
+import org.eclipse.dltk.ui.preferences.OverlayPreferenceStore.OverlayKey;
import org.eclipse.dltk.ui.util.SWTFactory;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
@@ -112,8 +113,8 @@
/*
* @see org.eclipse.dltk.ui.preferences.ImprovedAbstractConfigurationBlock#createOverlayKeys()
*/
- protected List createOverlayKeys() {
- ArrayList keys = new ArrayList(1);
+ protected List<OverlayKey> createOverlayKeys() {
+ ArrayList<OverlayKey> keys = new ArrayList<OverlayKey>(1);
keys.add(new OverlayPreferenceStore.OverlayKey(
OverlayPreferenceStore.STRING, getPreferenceKey()));
@@ -130,7 +131,7 @@
}
private IInterpreterInstall[] getInterpreterInstalls() {
- List interpreters = new ArrayList();
+ List<IInterpreterInstall> interpreters = new ArrayList<IInterpreterInstall>();
IInterpreterInstallType[] types = ScriptRuntime
.getInterpreterInstallTypes(getNatureId());
for (int i = 0; i < types.length; i++) {
@@ -140,7 +141,7 @@
}
}
- return (IInterpreterInstall[]) interpreters
+ return interpreters
.toArray(new IInterpreterInstall[interpreters.size()]);
}
}