diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2022-02-26 14:17:56 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2022-02-26 14:17:56 +0300 |
commit | 2301b3677678e86673ebd0cbe7bb9740ebfba84a (patch) | |
tree | f5ce0e965cfd718811a8f4e4d54b622a566233ba /ajde/src | |
parent | 102e0617a4bbcf0bd232b4f64995161db8681099 (diff) | |
download | aspectj-2301b3677678e86673ebd0cbe7bb9740ebfba84a.tar.gz aspectj-2301b3677678e86673ebd0cbe7bb9740ebfba84a.zip |
Cleanup redundant type casts, due to too weak variable type declaration
Diffstat (limited to 'ajde/src')
3 files changed, 5 insertions, 6 deletions
diff --git a/ajde/src/main/java/org/aspectj/ajde/internal/LstBuildConfigManager.java b/ajde/src/main/java/org/aspectj/ajde/internal/LstBuildConfigManager.java index 5a90fe77b..e775810c3 100644 --- a/ajde/src/main/java/org/aspectj/ajde/internal/LstBuildConfigManager.java +++ b/ajde/src/main/java/org/aspectj/ajde/internal/LstBuildConfigManager.java @@ -276,8 +276,8 @@ public class LstBuildConfigManager implements BuildConfigManager { } private void notifyConfigChanged() { - for (Object element : listeners) { - ((BuildConfigListener) element).currConfigChanged(currConfigFilePath); + for (BuildConfigListener element : listeners) { + element.currConfigChanged(currConfigFilePath); } } diff --git a/ajde/src/main/java/org/aspectj/ajde/ui/BuildConfigModel.java b/ajde/src/main/java/org/aspectj/ajde/ui/BuildConfigModel.java index 31b64fb2a..eadda2389 100644 --- a/ajde/src/main/java/org/aspectj/ajde/ui/BuildConfigModel.java +++ b/ajde/src/main/java/org/aspectj/ajde/ui/BuildConfigModel.java @@ -112,8 +112,8 @@ public class BuildConfigModel { } if (node != null && node.getChildren() != null) { - for (Object element : node.getChildren()) { - BuildConfigNode foundNode = findNodeForSourceLineHelper((BuildConfigNode) element, sourceFilePath, lineNumber); + for (BuildConfigNode element : node.getChildren()) { + BuildConfigNode foundNode = findNodeForSourceLineHelper(element, sourceFilePath, lineNumber); if (foundNode != null) return foundNode; } 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 6def17bd6..8348681c6 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 @@ -125,8 +125,7 @@ public class TreeStructureViewBuilder { } } if (node.getChildren() != null) { - for (Object element : node.getChildren()) { - IProgramElement IProgramElement = (IProgramElement)element; + for (IProgramElement IProgramElement : node.getChildren()) { if (acceptNode(IProgramElement, properties)) { children.add(createViewNode(IProgramElement, properties)); } |