-
Notifications
You must be signed in to change notification settings - Fork 685
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
W-17463948: Prevent double injection of objects in registry #14066
Conversation
caf9295
to
f75b66e
Compare
--validate |
2 similar comments
--validate |
--validate |
515c0e5
to
302c4b4
Compare
--validate |
302c4b4
to
cee2c50
Compare
*/ | ||
<T> T inject(T object) throws MuleException; | ||
<T> T inject(T object) throws IllegalDependencyInjectionException; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we be sure that other components (from other teams or some customer) don't use this method? Implementing it would be also a problem, but we at least have the NoImplement annotation
* @throws MuleException if there is an error initializing | ||
*/ | ||
@SuppressWarnings({"unused"}) | ||
private void initAfterDeserialisation(MuleContext muleContext) throws MuleException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a test asserting that we aren't breaking something with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all existing tests that use a persistent object store
@@ -242,7 +245,7 @@ protected InternalEvent setInternalParamsForNotParamResolver(Component component | |||
try { | |||
((ParametersResolverProcessor<?>) component).resolveParameters(builder, (params, context) -> { | |||
resolvedParameters.putAll(params.entrySet().stream() | |||
.collect(toMap(e -> e.getKey(), | |||
.collect(toMap((Function<? super Entry<String, Supplier<Object>>, ? extends String>) Entry::getKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The older code sounds cleaner in this case
93319e4
to
cdefa22
Compare
--validate |
No description provided.