From 16d7736ccea7ed05f0f56246f8b06db8c8a30b20 Mon Sep 17 00:00:00 2001 From: apete Date: Tue, 24 Dec 2024 09:43:53 +0100 Subject: [PATCH] Update Optimisation.java --- src/main/java/org/ojalgo/optimisation/Optimisation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/ojalgo/optimisation/Optimisation.java b/src/main/java/org/ojalgo/optimisation/Optimisation.java index 82d6fd71c..969a30fae 100644 --- a/src/main/java/org/ojalgo/optimisation/Optimisation.java +++ b/src/main/java/org/ojalgo/optimisation/Optimisation.java @@ -344,8 +344,9 @@ public Optional getConfigurator(final Class type) { ProgrammingError.throwIfNull(type); if (myConfigurator != null && type.isInstance(myConfigurator)) { return Optional.of((T) myConfigurator); + } else { + return Optional.empty(); } - return Optional.empty(); } public IntegerStrategy integer() {