diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/IterationStateTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/IterationStateTest.java index 6bab0ce67d49..1fe137d49824 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/IterationStateTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/IterationStateTest.java @@ -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(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 actualSegments = new ArrayList(); + List 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 pastLineEndSegmentWidths = new ArrayList(); - private final List pastLineEndSegmentColors = new ArrayList(); + private final List pastLineEndSegmentWidths = new ArrayList<>(); + private final List pastLineEndSegmentColors = new ArrayList<>(); private Segment(int start, int end, Color color) { this.start = start;