Bug 571977 - [AutoRefactor immigration #64/151] [cleanup & saveaction]
Initialize array with curly
Replace the new instance syntax by curly brackets to create an array
when possible:
- It must be an initialization of a declaration,
- The declaration must have the same type.
Given:
double[] doubleArray = new double[] { 0.0 };
int[][] intArray = new int[][] { { 42 } };
When:
Clean up the code enabling "Create array with curly when possible"
Then:
double[] doubleArray = { 0.0 };
int[][] intArray = { { 42 } };
Change-Id: Id9551e3d3f405b60aad4f1dd844648a4e08d565d
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: I303fa771248ade0a37551bdf6d432bdf0b3eacf74 files changed