Using intermediate variable for java module lookup
This commit is contained in:
@@ -65,8 +65,9 @@ public class KotlinFrameworkDetector {
|
|||||||
@Override
|
@Override
|
||||||
public Result<Boolean> compute() {
|
public Result<Boolean> compute() {
|
||||||
GlobalSearchScope scope = module.getModuleWithDependenciesAndLibrariesScope(false);
|
GlobalSearchScope scope = module.getModuleWithDependenciesAndLibrariesScope(false);
|
||||||
return Result.create(KotlinRuntimeLibraryUtil.getKotlinRuntimeMarkerClass(scope) != null,
|
boolean javaMarkerClassFound = KotlinRuntimeLibraryUtil.getKotlinRuntimeMarkerClass(scope) != null;
|
||||||
ProjectRootModificationTracker.getInstance(module.getProject()));
|
|
||||||
|
return Result.create(javaMarkerClassFound, ProjectRootModificationTracker.getInstance(module.getProject()));
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user