aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
Diffstat (limited to 'ajde')
-rw-r--r--ajde/src/main/java/org/aspectj/ajde/Ajde.java5
-rw-r--r--ajde/src/main/java/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java2
-rw-r--r--ajde/src/main/java/org/aspectj/ajde/ui/javaoptions/JavaCompilerWarningsOptionsPanel.java9
3 files changed, 7 insertions, 9 deletions
diff --git a/ajde/src/main/java/org/aspectj/ajde/Ajde.java b/ajde/src/main/java/org/aspectj/ajde/Ajde.java
index 5977feb16..3a75bbb0a 100644
--- a/ajde/src/main/java/org/aspectj/ajde/Ajde.java
+++ b/ajde/src/main/java/org/aspectj/ajde/Ajde.java
@@ -259,9 +259,8 @@ public class Ajde {
showWarningMessage("No main class specified");
} else {
StringBuilder sb = new StringBuilder();
- List outputDirs = compilerConfig.getOutputLocationManager().getAllOutputLocations();
- for (Object outputDir : outputDirs) {
- File dir = (File) outputDir;
+ List<File> outputDirs = compilerConfig.getOutputLocationManager().getAllOutputLocations();
+ for (File dir : outputDirs) {
sb.append(dir.getAbsolutePath() + File.pathSeparator);
}
classpath = LangUtil.makeClasspath(null, compilerConfig.getClasspath(), sb.toString(), compilerConfig.getOutJar());
diff --git a/ajde/src/main/java/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java b/ajde/src/main/java/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java
index 444432672..59ce0da2d 100644
--- a/ajde/src/main/java/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java
+++ b/ajde/src/main/java/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java
@@ -183,7 +183,7 @@ public class TreeStructureViewBuilder {
if (properties.getFilteredMemberKinds().contains(pNode.getKind())) {
return false;
}
- for (Object element : pNode.getModifiers()) {
+ for (IProgramElement.Modifiers element : pNode.getModifiers()) {
if (properties.getFilteredMemberModifiers().contains(element)) {
return false;
}
diff --git a/ajde/src/main/java/org/aspectj/ajde/ui/javaoptions/JavaCompilerWarningsOptionsPanel.java b/ajde/src/main/java/org/aspectj/ajde/ui/javaoptions/JavaCompilerWarningsOptionsPanel.java
index 8100aa7e4..17a2bee8f 100644
--- a/ajde/src/main/java/org/aspectj/ajde/ui/javaoptions/JavaCompilerWarningsOptionsPanel.java
+++ b/ajde/src/main/java/org/aspectj/ajde/ui/javaoptions/JavaCompilerWarningsOptionsPanel.java
@@ -65,11 +65,10 @@ public class JavaCompilerWarningsOptionsPanel extends OptionsPanel {
}
public void saveOptions() throws IOException {
- Set s = warningComboBoxes.entrySet();
- for (Object o : s) {
- Entry entry = (Entry) o;
- String javaOption = (String) entry.getKey();
- JComboBox combo = (JComboBox) entry.getValue();
+ Set<Entry<String, JComboBox>> s = warningComboBoxes.entrySet();
+ for (Entry<String, JComboBox> entry : s) {
+ String javaOption = entry.getKey();
+ JComboBox combo = entry.getValue();
String value = (String) combo.getSelectedItem();
javaBuildOptions.setOption(javaOption, value);
}