maven: code clean-up

This commit is contained in:
Vladislav.Soroka
2015-04-06 13:29:05 +03:00
parent 0c3ac107a4
commit dd71913089
@@ -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"));