Skip to content

Commit

Permalink
Update CHANGELOG.md and makes activeProblems thread save
Browse files Browse the repository at this point in the history
  • Loading branch information
0verEngineer committed May 24, 2023
1 parent 5af0b21 commit 07adfa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Some performance improvements
- Description for the listeners in the settings
- Configurable delay for the manual scan listener
- Support for new EAP versions

### Changed
- HighlightProblemListener is now deprecated
Expand All @@ -18,6 +19,8 @@
### Fixed
- Some possible null pointer exceptions
- invokeLater queuing issue of MarkupModelListener if used with the only one problem per line feature
- Cache of activeProblems is now thread safe
- CustomSeverity bugs that leads to useless problem updates

## [0.4.2]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void removeProblem(InlineProblem problem) {
inlineDrawer.undrawErrorLineHighlight(problem);
inlineDrawer.undrawInlineProblemLabel(problem);

if (!activeProblems.remove(problem)) {
if (!Collections.synchronizedList(activeProblems).remove(problem)) {
logger.warn("Removal of problem failed, resetting");
resetForEditor(problem.getTextEditor().getEditor());
return;
Expand Down Expand Up @@ -73,7 +73,7 @@ private void addProblemPrivate(InlineProblem problem) {
inlineDrawer.drawProblemLabel(problem, drawDetails);
inlineDrawer.drawProblemLineHighlight(problem, drawDetails);

activeProblems.add(problem);
Collections.synchronizedList(activeProblems).add(problem);
}

public boolean shouldProblemBeIgnored(int severity) {
Expand Down

0 comments on commit 07adfa2

Please sign in to comment.