public void removeGlobals ( ) { Iterator < String > i = _imports . iterator ( ) ; while ( i . hasNext ( ) ) { String name = i . next ( ) ; if ( name . indexOf ( ' ' ) == - 1 ) { i . remove ( ) ; } else if ( name . startsWith ( "java.lang" ) ) { i . remove ( ) ; } } }
Gets rid of primitive and java . lang imports .