diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2022-04-12 11:22:29 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2022-04-12 11:22:29 +0300 |
commit | 1c487b2e0f54eeb4c2630940e7d57c279ba5a032 (patch) | |
tree | 0c0d84e75783441de07f4193e003429e64b11550 /ajdoc/src | |
parent | caa2c39be10775a8772a27eea8b9a673dd0bab8d (diff) | |
download | aspectj-1c487b2e0f54eeb4c2630940e7d57c279ba5a032.tar.gz aspectj-1c487b2e0f54eeb4c2630940e7d57c279ba5a032.zip |
Remove redundant casts after generics update
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/main/java/org/aspectj/tools/ajdoc/StructureUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ajdoc/src/main/java/org/aspectj/tools/ajdoc/StructureUtil.java b/ajdoc/src/main/java/org/aspectj/tools/ajdoc/StructureUtil.java index a6490bd52..770d3f526 100644 --- a/ajdoc/src/main/java/org/aspectj/tools/ajdoc/StructureUtil.java +++ b/ajdoc/src/main/java/org/aspectj/tools/ajdoc/StructureUtil.java @@ -107,7 +107,7 @@ public class StructureUtil { public static String getPackageDeclarationFromFile(AsmManager model, File file) { IProgramElement fileNode = model.getHierarchy().findElementForSourceFile(file.getAbsolutePath()); - String packageName = ((IProgramElement) fileNode.getChildren().get(0)).getPackageName(); + String packageName = fileNode.getChildren().get(0).getPackageName(); return packageName; } @@ -143,7 +143,7 @@ public class StructureUtil { for (int i = 0; i < node.getParameterTypes().size(); i++) { sb.append(String.valueOf(node.getParameterTypes().get(i))); sb.append(' '); - sb.append((String) node.getParameterNames().get(i)); + sb.append(node.getParameterNames().get(i)); if (i < node.getParameterTypes().size() - 1) { sb.append(", "); } |