mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GradleL code cleanup
This commit is contained in:
+2
-2
@@ -204,7 +204,7 @@ public class ImportMavenRepositoriesTask implements Runnable {
|
||||
if (uri.getScheme() != null && StringUtil.startsWith(uri.getScheme(), "http")) return uri;
|
||||
}
|
||||
}
|
||||
catch (URISyntaxException e) {
|
||||
catch (URISyntaxException ignored) {
|
||||
// ignore it
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ public class ImportMavenRepositoriesTask implements Runnable {
|
||||
if (uri.getScheme() != null && StringUtil.startsWith("http", uri.getScheme())) return uri;
|
||||
}
|
||||
}
|
||||
catch (URISyntaxException e) {
|
||||
catch (URISyntaxException ignored) {
|
||||
// ignore it
|
||||
}
|
||||
|
||||
|
||||
-8
@@ -19,11 +19,9 @@ import com.intellij.codeInsight.CodeInsightActionHandler;
|
||||
import com.intellij.codeInsight.CodeInsightUtilBase;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
@@ -91,12 +89,6 @@ class AddGradleDslDependencyActionHandler implements CodeInsightActionHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PsiDocumentManager documentManager = PsiDocumentManager.getInstance(project);
|
||||
Document document = documentManager.getDocument(file);
|
||||
if (document != null) {
|
||||
documentManager.commitDocument(document);
|
||||
}
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user