mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
maven: code clean-up
This commit is contained in:
+1
-2
@@ -40,8 +40,7 @@ public class MavenCompilerConfigurer extends MavenModuleConfigurer {
|
||||
if (module == null) return;
|
||||
|
||||
CompilerConfiguration configuration = CompilerConfiguration.getInstance(project);
|
||||
Boolean ignoreMavenCompilerTargetOption = module.getUserData(IGNORE_MAVEN_COMPILER_TARGET_KEY);
|
||||
if (ignoreMavenCompilerTargetOption == null || !ignoreMavenCompilerTargetOption.booleanValue()) {
|
||||
if (!Boolean.TRUE.equals(module.getUserData(IGNORE_MAVEN_COMPILER_TARGET_KEY))) {
|
||||
String targetLevel = mavenProject.getTargetLevel();
|
||||
// default source and target settings of maven-compiler-plugin is 1.5, see details at http://maven.apache.org/plugins/maven-compiler-plugin
|
||||
configuration.setBytecodeTargetLevel(module, ObjectUtils.notNull(targetLevel, "1.5"));
|
||||
|
||||
Reference in New Issue
Block a user