From 8529f14034bbbacc2b3bd496c78b7d56d1ee1355 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 7 Jul 2016 23:03:23 +0200 Subject: [PATCH] inline ColorDescriptor.EMPTY_ARRAY and remove mass-copy-paste --- plugins/yaml/src/org/jetbrains/yaml/YAMLColorsPage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/yaml/src/org/jetbrains/yaml/YAMLColorsPage.java b/plugins/yaml/src/org/jetbrains/yaml/YAMLColorsPage.java index a0a6291867c5..40ff26d51184 100644 --- a/plugins/yaml/src/org/jetbrains/yaml/YAMLColorsPage.java +++ b/plugins/yaml/src/org/jetbrains/yaml/YAMLColorsPage.java @@ -61,8 +61,6 @@ public class YAMLColorsPage implements ColorSettingsPage { // Empty still private static final Map ADDITIONAL_HIGHLIGHT_DESCRIPTORS = new HashMap(); - private static final ColorDescriptor[] COLORS = ColorDescriptor.EMPTY_ARRAY; - @Nullable public Map getAdditionalHighlightingTagToDescriptorMap() { return ADDITIONAL_HIGHLIGHT_DESCRIPTORS; @@ -85,7 +83,7 @@ public class YAMLColorsPage implements ColorSettingsPage { @NotNull public ColorDescriptor[] getColorDescriptors() { - return COLORS; + return ColorDescriptor.EMPTY_ARRAY; } @NotNull