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

Change Vector to ArrayList #74

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

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