FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use normal ArrayList instead of synchronizedList for errorPoints · johan718/processing@7fa1a86 · GitHub

Repository navigation

Commit 7fa1a86

Browse files
committed
Use normal ArrayList instead of synchronizedList for errorPoints
1 parent 9a15a88 commit 7fa1a86

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎java/src/processing/mode/java/MarkerColumn.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public class MarkerColumn extends JPanel {
6262
private Color warningColor;
6363

6464
// Stores error markers displayed PER TAB along the error bar.
65-
private List<LineMarker> errorPoints =
66-
Collections.synchronizedList(new ArrayList<LineMarker>());
65+
private List<LineMarker> errorPoints = new ArrayList<LineMarker>();
6766

6867

6968
public MarkerColumn(JavaEditor editor, int height) {
@@ -119,7 +118,7 @@ public void updateErrorPoints(final List<Problem> problems) {
119118
// index in the arraylist is LOCALIZED for current tab.
120119
Sketch sketch = editor.getSketch();
121120
int currentTab = sketch.getCurrentCodeIndex();
122-
errorPoints = Collections.synchronizedList(new ArrayList<LineMarker>());
121+
errorPoints.clear();
123122
// Each problem.getSourceLine() will have an extra line added because
124123
// of class declaration in the beginning as well as default imports
125124
for (Problem problem : problems) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL