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

Use Enum.getDeclaringClass() to avoid NPE in comparing enums #1862

Merged
merged 1 commit into from Apr 27, 2017

Conversation

blindpirate
Copy link
Collaborator

Context

Fix #1861 , which is due to a misuse of Enum.getClass().getCanonicalName(). In this scenario, Enum.getDeclaringClass() should be used.

Contributor Checklist

@big-guy big-guy self-assigned this Apr 25, 2017
@big-guy big-guy merged commit 0b23722 into gradle:master Apr 27, 2017
@big-guy
Copy link
Member

big-guy commented Apr 27, 2017

Thanks, this will be in the next release.

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

Successfully merging this pull request may close these issues.

None yet

3 participants