Skip to content

Commit

Permalink
IDEA-313713 FileColorsModel: use concurrency safe way of copying list
Browse files Browse the repository at this point in the history
GitOrigin-RevId: a3e8e69f60e5b581bd2f78eccc90ee695f8fcac8
  • Loading branch information
KonstantinHudyakov authored and intellij-monorepo-bot committed Feb 22, 2023
1 parent a4d64e1 commit f35b04a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.jetbrains.annotations.Nullable;

import java.awt.*;
import java.util.*;
import java.util.List;
import java.util.*;

/**
* @author Konstantin Bulenkov
Expand Down Expand Up @@ -284,11 +284,11 @@ public boolean isColored(@NotNull String scopeName, boolean isProjectLevel) {
}

public List<FileColorConfiguration> getLocalConfigurations() {
return ContainerUtil.copyList(myApplicationLevelConfigurations);
return new ArrayList<>(myApplicationLevelConfigurations);
}

@NotNull
public List<FileColorConfiguration> getProjectLevelConfigurations() {
return ContainerUtil.copyList(myProjectLevelConfigurations);
return new ArrayList<>(myProjectLevelConfigurations);
}
}

0 comments on commit f35b04a

Please sign in to comment.