diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2022-04-13 13:51:39 +0300 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-04-15 11:00:33 +0700 |
commit | 2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d (patch) | |
tree | 4afc936dbc982b72b5dadddafc8360f6c4436be0 /ajde | |
parent | 047a93c24f4eef3b2ebf254be9332d4340adbd04 (diff) | |
download | aspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.tar.gz aspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.zip |
Reduce 'Object' class usage
Diffstat (limited to 'ajde')
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); } |