mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+1
-1
@@ -529,7 +529,7 @@ public class IterationState {
|
||||
}
|
||||
|
||||
List<TextAttributes> cachedAttributes = myCachedAttributesList;
|
||||
cachedAttributes.clear();
|
||||
if (!cachedAttributes.isEmpty()) cachedAttributes.clear();
|
||||
|
||||
//noinspection ForLoopReplaceableByForEach
|
||||
for (int i = 0; i < size; i++) {
|
||||
|
||||
@@ -18,6 +18,7 @@ package com.intellij.util;
|
||||
import com.intellij.util.containers.EmptyIterator;
|
||||
import com.intellij.util.containers.SingletonIteratorBase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.*;
|
||||
@@ -242,7 +243,8 @@ public class SmartList<E> extends AbstractList<E> implements RandomAccess {
|
||||
}
|
||||
}
|
||||
|
||||
public int getModificationCount() {
|
||||
@TestOnly
|
||||
int getModificationCount() {
|
||||
return modCount;
|
||||
}
|
||||
|
||||
@@ -294,7 +296,7 @@ public class SmartList<E> extends AbstractList<E> implements RandomAccess {
|
||||
if (mySize == 0) {
|
||||
return -1;
|
||||
}
|
||||
else if (mySize == 1) {
|
||||
if (mySize == 1) {
|
||||
if (o == null) {
|
||||
return myElem == null ? 0 : -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user