mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+2
-6
@@ -239,12 +239,8 @@ public class SdkConfigurationUtil {
|
||||
*/
|
||||
@Nullable
|
||||
public static Sdk createAndAddSDK(final String path, SdkType sdkType) {
|
||||
VirtualFile sdkHome = ApplicationManager.getApplication().runWriteAction(new Computable<VirtualFile>() {
|
||||
@Override
|
||||
public VirtualFile compute() {
|
||||
return LocalFileSystem.getInstance().refreshAndFindFileByPath(path);
|
||||
}
|
||||
});
|
||||
VirtualFile sdkHome = ApplicationManager.getApplication().runWriteAction(
|
||||
(Computable<VirtualFile>)() -> LocalFileSystem.getInstance().refreshAndFindFileByPath(path));
|
||||
if (sdkHome != null) {
|
||||
final Sdk newSdk = setupSdk(ProjectJdkTable.getInstance().getAllJdks(), sdkHome, sdkType, true, null, null);
|
||||
if (newSdk != null) {
|
||||
|
||||
Reference in New Issue
Block a user