public void setJavaLanguageLevel ( final String languageLevel ) { if ( Arrays . binarySearch ( LANGUAGE_LEVELS , languageLevel ) < 0 ) { throw new RuntimeException ( "value '" + languageLevel + "' is not a valid language level" ) ; } this . languageLevel = languageLevel ; }
You cannot set language level below 1 . 5 as we need static imports 1 . 5 is now the default .