mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -174,8 +174,7 @@ public class ProblemsHolder {
|
||||
|
||||
@Nullable
|
||||
public ProblemDescriptor[] getResultsArray() {
|
||||
final List<ProblemDescriptor> problems = myProblems;
|
||||
myProblems = null;
|
||||
final List<ProblemDescriptor> problems = getResults();
|
||||
return problems == null ? null : problems.toArray(new ProblemDescriptor[problems.size()]);
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.RangeMarker;
|
||||
import com.intellij.openapi.editor.ex.RangeMarkerEx;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ public class CodeFoldingManagerImpl extends CodeFoldingManager implements Projec
|
||||
myProject = project;
|
||||
project.getMessageBus().connect().subscribe(DocumentBulkUpdateListener.TOPIC, new DocumentBulkUpdateListener.Adapter() {
|
||||
public void updateStarted(final Document doc) {
|
||||
resetFoldingInfo(doc); //TODO RangeMarkers tree convert
|
||||
resetFoldingInfo(doc);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ package com.intellij.openapi.progress;
|
||||
|
||||
public class ProcessCanceledException extends RuntimeException {
|
||||
public ProcessCanceledException() {
|
||||
int i = 0;
|
||||
}
|
||||
|
||||
public ProcessCanceledException(Throwable cause) {
|
||||
|
||||
@@ -782,7 +782,7 @@ public class ContainerUtil {
|
||||
|
||||
@NotNull
|
||||
public static <T, V> List<V> map(@NotNull T[] arr, @NotNull Function<T, V> mapping) {
|
||||
List<V> result = new ArrayList<V>();
|
||||
List<V> result = new ArrayList<V>(arr.length);
|
||||
for (T t : arr) {
|
||||
result.add(mapping.fun(t));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user