public void translateClassArrays ( ) { ImportSet arrayTypes = new ImportSet ( ) ; Iterator < String > i = _imports . iterator ( ) ; while ( i . hasNext ( ) ) { String name = i . next ( ) ; int bracket = name . lastIndexOf ( ' ' ) ; if ( bracket != - 1 && name . charAt ( bracket + 1 ) == ' ' ) { arrayTypes . add ( name . substring ( bracket + 2 , name . length ( ) - 1 ) ) ; } } addAll ( arrayTypes ) ; }
Inserts imports for the non - primitive classes contained in all array imports .