Skip to content

MapKeyElementSelector.getKey() is deprecated #197

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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