-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fix stackoverflow error in StandardListenerList #368
base: master
Are you sure you want to change the base?
Conversation
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/team-explorer-everywhere?shareId=XXXX-XXXX-XXXX-XXXX).
@Je0pardy please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
…an iterative approach instead of recursion. * Add a new private method `addListenerIterative` to handle the iterative logic. * Update the `addListener` method to call `addListenerIterative` instead of the recursive `addListener`. * Make `ListenerNode.next` non-final to allow modification in the iterative method.
For more details, open the Copilot Workspace session.