kotlin-projects/kj2k — pull request #19 by Hozum (2013-02-22 07:17:50+00:00)
Title: ArrayWithoutInitializationExpression

I fixed ArrayWithoutInitializationExpression class for object array and multidimensional array.

【object array】
Java
Object[] arr = new Object[5];

kotlin
-- before --
var arr : Array? = Array(5)

-- after --
var arr : Array? = arrayOfNulls(5)

add 2 tests for checking this convert :
arrayInitializerExpression/statements/objectArrayWithLength
arrayInitializerExpression/statements/intArrayWithLength

【multidimensional array】
Java
int[][][] 3d = new int[5][5][]

kotlin
-- before --
var 3d : Array?>? = Array?>(5, {Array(5)})

-- after --
var 3d : Array?>? = Array?>(5, {arrayOfNulls(5)})

please see 2 tests for checking this convert :
arrayType/statement/arrayInitializationStatementsWithDimension
arrayType/statement/arrayInitializationStatementsWithDimension3d