| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,8 +62,7 @@ public class MarkerColumn extends JPanel { | |||
| 62 | 62 | private Color warningColor; | |
| 63 | 63 | ||
| 64 | 64 | // 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>(); | ||
| 67 | 66 | ||
| 68 | 67 | ||
| 69 | 68 | public MarkerColumn(JavaEditor editor, int height) { | |
@@ -119,7 +118,7 @@ public void updateErrorPoints(final List<Problem> problems) { | |||
| 119 | 118 | // index in the arraylist is LOCALIZED for current tab. | |
| 120 | 119 | Sketch sketch = editor.getSketch(); | |
| 121 | 120 | int currentTab = sketch.getCurrentCodeIndex(); | |
| 122 | - errorPoints = Collections.synchronizedList(new ArrayList<LineMarker>()); | ||
| 121 | + errorPoints.clear(); | ||
| 123 | 122 | // Each problem.getSourceLine() will have an extra line added because | |
| 124 | 123 | // of class declaration in the beginning as well as default imports | |
| 125 | 124 | for (Problem problem : problems) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments