Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapKeyElementSelector.getKey() is deprecated #197

Open
adzubla opened this issue Jan 19, 2018 · 0 comments
Open

MapKeyElementSelector.getKey() is deprecated #197

adzubla opened this issue Jan 19, 2018 · 0 comments

Comments

@adzubla
Copy link

adzubla commented Jan 19, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant