We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Flowing Code Style Guide v1.0.0 relies on Google Java Style Guide, which doesn't cover generics.
Particularly, it doesn't mention that diamond constructor invocation style is preferred.
I.e.
Map<String,List<Integer>> map = new HashMap<>();
Instead of:
Map<String,List<Integer>> map = new HashMap<String,List<Integer>>();
The text was updated successfully, but these errors were encountered:
I prefer the first one (less code), we should document it somewhere.
Sorry, something went wrong.
docs(code-style): favor use of diamond constructor invocation
88c8993
Close #32
No branches or pull requests
The Flowing Code Style Guide v1.0.0 relies on Google Java Style Guide, which doesn't cover generics.
Particularly, it doesn't mention that diamond constructor invocation style is preferred.
I.e.
Instead of:
The text was updated successfully, but these errors were encountered: