Skip to content

Commit

Permalink
Update gef plugins according to the 2023-09 changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <[email protected]>
  • Loading branch information
odockal authored and olkornii committed Jul 19, 2023
1 parent a1298a5 commit 344e314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected void createTree(TreeNodeExt node) {
Object obj = node.getValue();
if (obj instanceof EditPart) {
EditPart editPart = (EditPart) obj;
List<Object> children = editPart.getChildren();
List<? extends EditPart> children = editPart.getChildren();
for (Object child : children) {
TreeNodeExt newNode = new TreeNodeExt(child);
createTree(newNode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class EditPartFinder extends Finder<EditPart> {
@SuppressWarnings("unchecked")
@Override
public List<EditPart> getChildren(EditPart child) {
return child.getChildren();
return (List<EditPart>) child.getChildren();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void dump(EditPart parent, int indent) {
dump(((GraphicalEditPart) parent).getFigure(), indent + 1);
}
@SuppressWarnings("unchecked")
List<EditPart> editParts = parent.getChildren();
List<EditPart> editParts = (List<EditPart>) parent.getChildren();
for (EditPart editPart : editParts) {
dump(editPart, indent + 1);
}
Expand Down

0 comments on commit 344e314

Please sign in to comment.