Show LV=1.2 in IDE only in internal mode

This commit is contained in:
Mikhail Zarechenskiy
2017-03-28 14:10:06 +03:00
parent 5027a76ed4
commit c512453e16
4 changed files with 15 additions and 2 deletions
@@ -253,7 +253,7 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
);
}
if (languageVersion.compareTo(LanguageVersion.LATEST_STABLE) > 0) {
if (!languageVersion.isStable()) {
configuration.getNotNull(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY).report(
CompilerMessageSeverity.STRONG_WARNING,
"Language version " + languageVersion.getVersionString() + " is experimental, there are " +