Skip to content

Conversation

@mori-atsushi
Copy link

@Single(binds = []) and @Factory(binds = []) are expected to clear all bindings,
but currently, all supertypes are still registered.

To resolve this, remove the isNotEmpty() check from the forceDeclaredBindings condition
so that an empty binds array works as intended.

Remove isNotEmpty() check from forceDeclaredBindings condition to allow
binds=[] to work as intended. Previously, empty binds array was treated
as default binding due to the isEmpty check, preventing users from
explicitly disabling bindings.
@mori-atsushi mori-atsushi changed the base branch from 2.2.0 to 2.3.0 October 24, 2025 00:48
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.

1 participant