Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Nov 6, 2024
1 parent cd7668f commit ae8edf5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public void visitSupplier(Consumer<? super IProcessSupplier<?>> consumer) {
public void accept(IProcessSupplier<?> supplier) {

Object factorySupplier = ContextInjectionFactory.invoke(supplier, ProcessSupplierFactory.class, eclipseContext, null);
if(factorySupplier instanceof IProcessSupplier<?>) {
if(factorySupplier instanceof IProcessSupplier<?> processSupplier) {
ContextInjectionFactory.inject(factorySupplier, eclipseContext);
consumer.accept((IProcessSupplier<?>)factorySupplier);
consumer.accept(processSupplier);
} else {
consumer.accept(supplier);
}
Expand Down

0 comments on commit ae8edf5

Please sign in to comment.