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

UseDiamondOperatorRefactoring: can not refactor properly if construct ArrayList with initialCapacity #296

Open
longgt opened this issue Aug 14, 2017 · 0 comments

Comments

@longgt
Copy link

longgt commented Aug 14, 2017

[Step to reproduce]

  1. Construct ArrayList with initialCapacity
List<Object> l = new ArrayList<Object>(5);
  1. Run AutoRefactor with Diamon operator option
    Nothing happens.

※If run with Eclipse > Source > Clean Up > Remove redundant type arguments, diamon operator will be refactored properly.

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

No branches or pull requests

2 participants