From ae8edf58e1b02de32358b336ff1dfee2fa702fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 6 Nov 2024 17:01:34 +0100 Subject: [PATCH] Code cleanup. --- .../chemclipse/processing/ui/E4ProcessSupplierContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chemclipse/plugins/org.eclipse.chemclipse.processing.ui/src/org/eclipse/chemclipse/processing/ui/E4ProcessSupplierContext.java b/chemclipse/plugins/org.eclipse.chemclipse.processing.ui/src/org/eclipse/chemclipse/processing/ui/E4ProcessSupplierContext.java index fae44a5e28..0d54fcb3a1 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.processing.ui/src/org/eclipse/chemclipse/processing/ui/E4ProcessSupplierContext.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.processing.ui/src/org/eclipse/chemclipse/processing/ui/E4ProcessSupplierContext.java @@ -55,9 +55,9 @@ public void visitSupplier(Consumer> 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); }