Use normal ArrayList instead of synchronizedList for errorPoints

This commit is contained in:
Pawel Golinski
2016-02-24 13:55:30 +01:00
parent 68aa116c0b
commit 749a4f287a

View File

@@ -62,8 +62,7 @@ public class MarkerColumn extends JPanel {
private Color warningColor;
// Stores error markers displayed PER TAB along the error bar.
private List<LineMarker> errorPoints =
Collections.synchronizedList(new ArrayList<LineMarker>());
private List<LineMarker> errorPoints = new ArrayList<LineMarker>();
public MarkerColumn(JavaEditor editor, int height) {
@@ -119,7 +118,7 @@ public class MarkerColumn extends JPanel {
// index in the arraylist is LOCALIZED for current tab.
Sketch sketch = editor.getSketch();
int currentTab = sketch.getCurrentCodeIndex();
errorPoints = Collections.synchronizedList(new ArrayList<LineMarker>());
errorPoints.clear();
// Each problem.getSourceLine() will have an extra line added because
// of class declaration in the beginning as well as default imports
for (Problem problem : problems) {