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

Fix issue #140: Don't match keyword new when used as method reference. #89

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

StrangeNoises
Copy link
Contributor

ie: In test for anonymous-classes-and-new, ignore 'new' when prefixed with two colons. Fixes problems when using eg: stream.collect(Collectors.toCollection(ArrayList::new));

…as a method reference eg: ArrayList::new; specifically ignore when prefixed with two colons.
@wbond wbond merged commit 644bef0 into sublimehq:master Jan 12, 2016
wbond added a commit that referenced this pull request Jan 12, 2016
[Java] Don't match keyword new when used as method reference
@wbond
Copy link
Member

wbond commented Jan 12, 2016

Thanks for this tweak. I added the original example code from jskinner/DefaultPackages#140 in e682b30.

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

Successfully merging this pull request may close these issues.

2 participants