Using intermediate variable for java module lookup

This commit is contained in:
Nikolay Krasko
2013-03-06 19:35:14 +04:00
parent 15fc21cf27
commit 7c0be23416
@@ -65,8 +65,9 @@ public class KotlinFrameworkDetector {
@Override
public Result<Boolean> compute() {
GlobalSearchScope scope = module.getModuleWithDependenciesAndLibrariesScope(false);
return Result.create(KotlinRuntimeLibraryUtil.getKotlinRuntimeMarkerClass(scope) != null,
ProjectRootModificationTracker.getInstance(module.getProject()));
boolean javaMarkerClassFound = KotlinRuntimeLibraryUtil.getKotlinRuntimeMarkerClass(scope) != null;
return Result.create(javaMarkerClassFound, ProjectRootModificationTracker.getInstance(module.getProject()));
}
}, false);