-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Collection fields are unnecessarily initialized to "null" #1346
Comments
Hi
Please see JLS 4.12.5. Initial Values of Variables
|
@unkish
is not what i expect. |
I'm sorry but I don't understand why is that a problem or what kind of problem are you trying to solve |
@unkish
this kind of code is not friendly |
At present it's not possible to get the described result without either:
|
Not sure when this began happening, but I agree it would be nice to remove it. It's annoying noise. Feel free to submit a PR for this. |
Closed by #1347 |
GenerationConfig has a option of "isInitializeCollections",
if it is true,
the result is
if it is false
the result is
How can i get the result
The text was updated successfully, but these errors were encountered: