Skip to content

Commit

Permalink
Remove dispose call for Colors in MessageLine
Browse files Browse the repository at this point in the history
According to the Javadoc on Colors:

 * Colors do not need to be disposed, however to maintain compatibility
 * with older code, disposing a Color is not an error.
  • Loading branch information
vogella authored and akurtakov committed Jan 14, 2025
1 parent 5c67180 commit b9d3edb
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,4 @@ public void setErrorStatus(IStatus status) {
setBackground(fNormalMsgAreaBackground);
}

@Override
public void dispose() {
if (fErrorMsgAreaBackground != null) {
fErrorMsgAreaBackground.dispose();
fErrorMsgAreaBackground = null;
}
super.dispose();
}
}

0 comments on commit b9d3edb

Please sign in to comment.