aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2022-04-13 13:51:39 +0300
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-04-15 11:00:33 +0700
commit2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d (patch)
tree4afc936dbc982b72b5dadddafc8360f6c4436be0 /ajde
parent047a93c24f4eef3b2ebf254be9332d4340adbd04 (diff)
downloadaspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.tar.gz
aspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.zip
Reduce 'Object' class usage
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);
}