mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+4
-4
@@ -47,7 +47,7 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
|
||||
DEFAULT_BACKGROUND = colorsScheme.getDefaultBackground();
|
||||
CARET_ROW_BACKGROUND = colorsScheme.getColor(EditorColors.CARET_ROW_COLOR);
|
||||
SELECTION_BACKGROUND = colorsScheme.getColor(EditorColors.SELECTION_BACKGROUND_COLOR);
|
||||
assertEquals(3, new HashSet<Color>(Arrays.asList(DEFAULT_BACKGROUND, CARET_ROW_BACKGROUND, SELECTION_BACKGROUND)).size());
|
||||
assertEquals(3, new HashSet<>(Arrays.asList(DEFAULT_BACKGROUND, CARET_ROW_BACKGROUND, SELECTION_BACKGROUND)).size());
|
||||
}
|
||||
|
||||
public void testBlockSelection() {
|
||||
@@ -171,7 +171,7 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
|
||||
private void verifySplitting(boolean checkForegroundColor, @NotNull Segment... expectedSegments) {
|
||||
EditorEx editor = (EditorEx)myFixture.getEditor();
|
||||
IterationState iterationState = new IterationState(editor, 0, editor.getDocument().getTextLength(), true);
|
||||
List<Segment> actualSegments = new ArrayList<Segment>();
|
||||
List<Segment> actualSegments = new ArrayList<>();
|
||||
do {
|
||||
Segment segment = new Segment(iterationState.getStartOffset(),
|
||||
iterationState.getEndOffset(),
|
||||
@@ -216,8 +216,8 @@ public class IterationStateTest extends LightPlatformCodeInsightFixtureTestCase
|
||||
private final int start;
|
||||
private final int end;
|
||||
private final Color color;
|
||||
private final List<Integer> pastLineEndSegmentWidths = new ArrayList<Integer>();
|
||||
private final List<Color> pastLineEndSegmentColors = new ArrayList<Color>();
|
||||
private final List<Integer> pastLineEndSegmentWidths = new ArrayList<>();
|
||||
private final List<Color> pastLineEndSegmentColors = new ArrayList<>();
|
||||
|
||||
private Segment(int start, int end, Color color) {
|
||||
this.start = start;
|
||||
|
||||
Reference in New Issue
Block a user