Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #405: exception during workbench shutdown #410

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Conversation

Bananeweizen
Copy link
Collaborator

Avoid a static block for creating the icon images, since we cannot really control when that static block is executed (it depends on the class loading time). Rather create the icons the first time they are accessed, since that is surely when the workbench is fully up and running.

Have tested configuration, execution, markers. Works as before, no more exception.

Avoid a static block for creating the icon images, since we cannot
really control when that static block is executed (it depends on the
class loading time). Rather create the icons the first time they are
needed, since that is surely when the workbench is fully up and running.
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can not validate correctness of this PR.
Better if @Calixte to look at it.

@@ -29,7 +29,7 @@

/**
* Image provider for Checkstyle markers.
*
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like auto formatting.
Is it possible to auto format whole project ones to avoid such extra changes in future?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's why I have it quite high in the bullet point list of #388. I also don't like reviews that contain whitespace and formatting changes.

@Calixte Calixte merged commit 2d5bd92 into master Nov 18, 2022
@Calixte Calixte deleted the icon_exception branch November 18, 2022 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants