Skip to content

Conversation

GoToLoop
Copy link

@GoToLoop GoToLoop commented Jul 9, 2016

Since ArrayList isn't safe like Vector, I'm also adding synchronized () at places where either of its structure's size() changes.
Those 6 methods are: add(), addDrawable(), remove(), removeDrawable(), clear() and clearDrawable().
Of course, all loops traversing this class still needs to be synchronized externally as well; either over get() or getDrawables().
Last word: This patch is just a standalone performant refactoring. It's not obligatory for ControllerGroup's previous patch.

GoToLoop added 4 commits July 9, 2016 06:25
Since __*ArrayList*__ isn't safe like __*Vector*__, I'm also adding `synchronized ()` at places where either of its structure's **size()** changes.
Those 6 methods are: **add()**, **addDrawable()**, **remove()**, **removeDrawable()**, **clear()** and **clearDrawable()**.
Of course, all loops traversing this class still needs to be synchronized externally as well; either over **get()** or **getDrawables()**.
Last word: This patch is just a standalone performant refactoring. It's not obligatory for __*ControllerGroup*__'s previous patch.
__*ControllerInterface< ? extends ControllerInterface< ? >*__
@sojamo sojamo added the wontfix label Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants