Skip to content

MapKeyElementSelector.getKey() is deprecated #197

@adzubla

Description

@adzubla

When visiting a map change, i need access to the map key. I'm doing this:

    ElementSelector elementSelector = node.getPath().getLastElementSelector();
    if (elementSelector instanceof MapKeyElementSelector) {
        Object key = ((MapKeyElementSelector) elementSelector).getKey();
        ...
    }

But the getKey() method is deprecated. Is there another way to achieve this?
If not, I think that the getKey() is useful and should not be deprecated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions