From 1a49816ab9b0ad63874ddeb6c8c0e776a855b700 Mon Sep 17 00:00:00 2001 From: Peter Laggner Date: Tue, 6 Aug 2024 23:02:55 +0200 Subject: [PATCH] fix: imports once more intellij used star imports despite eclipse plugin maven install removed star imports --- .../solver/core/api/solver/ProblemFactChange.java | 1 + .../core/impl/solver/BestSolutionHolder.java | 7 ++++++- .../core/impl/solver/DefaultSolutionManager.java | 7 ++++++- .../solver/core/impl/solver/DefaultSolverJob.java | 7 ++++++- .../core/impl/solver/DefaultSolverManager.java | 15 +++++++++++++-- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/ai/timefold/solver/core/api/solver/ProblemFactChange.java b/core/src/main/java/ai/timefold/solver/core/api/solver/ProblemFactChange.java index e4435cfd5e..210ad8fb6c 100644 --- a/core/src/main/java/ai/timefold/solver/core/api/solver/ProblemFactChange.java +++ b/core/src/main/java/ai/timefold/solver/core/api/solver/ProblemFactChange.java @@ -5,6 +5,7 @@ import ai.timefold.solver.core.api.score.Score; import ai.timefold.solver.core.api.score.director.ScoreDirector; import ai.timefold.solver.core.api.solver.change.ProblemChange; + import org.jspecify.annotations.NonNull; /** diff --git a/core/src/main/java/ai/timefold/solver/core/impl/solver/BestSolutionHolder.java b/core/src/main/java/ai/timefold/solver/core/impl/solver/BestSolutionHolder.java index 9caa2e5618..e5880ea7d1 100644 --- a/core/src/main/java/ai/timefold/solver/core/impl/solver/BestSolutionHolder.java +++ b/core/src/main/java/ai/timefold/solver/core/impl/solver/BestSolutionHolder.java @@ -1,7 +1,12 @@ package ai.timefold.solver.core.impl.solver; import java.math.BigInteger; -import java.util.*; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.SortedMap; +import java.util.TreeMap; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.locks.Lock; diff --git a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolutionManager.java b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolutionManager.java index aecf45d87f..55b228586b 100644 --- a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolutionManager.java +++ b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolutionManager.java @@ -8,7 +8,12 @@ import ai.timefold.solver.core.api.score.Score; import ai.timefold.solver.core.api.score.ScoreExplanation; import ai.timefold.solver.core.api.score.analysis.ScoreAnalysis; -import ai.timefold.solver.core.api.solver.*; +import ai.timefold.solver.core.api.solver.RecommendedFit; +import ai.timefold.solver.core.api.solver.ScoreAnalysisFetchPolicy; +import ai.timefold.solver.core.api.solver.SolutionManager; +import ai.timefold.solver.core.api.solver.SolutionUpdatePolicy; +import ai.timefold.solver.core.api.solver.SolverFactory; +import ai.timefold.solver.core.api.solver.SolverManager; import ai.timefold.solver.core.config.solver.EnvironmentMode; import ai.timefold.solver.core.impl.score.DefaultScoreExplanation; import ai.timefold.solver.core.impl.score.director.InnerScoreDirector; diff --git a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverJob.java b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverJob.java index c46d6a6e98..fc2407a760 100644 --- a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverJob.java +++ b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverJob.java @@ -3,7 +3,12 @@ import java.time.Duration; import java.util.Objects; import java.util.UUID; -import java.util.concurrent.*; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReentrantLock; import java.util.function.BiConsumer; diff --git a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverManager.java b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverManager.java index efac532053..2da2f8262b 100644 --- a/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverManager.java +++ b/core/src/main/java/ai/timefold/solver/core/impl/solver/DefaultSolverManager.java @@ -3,13 +3,24 @@ import java.util.Map; import java.util.Objects; import java.util.UUID; -import java.util.concurrent.*; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.function.Function; import ai.timefold.solver.core.api.domain.solution.PlanningSolution; -import ai.timefold.solver.core.api.solver.*; +import ai.timefold.solver.core.api.solver.Solver; +import ai.timefold.solver.core.api.solver.SolverConfigOverride; +import ai.timefold.solver.core.api.solver.SolverFactory; +import ai.timefold.solver.core.api.solver.SolverJob; +import ai.timefold.solver.core.api.solver.SolverJobBuilder; +import ai.timefold.solver.core.api.solver.SolverManager; +import ai.timefold.solver.core.api.solver.SolverStatus; import ai.timefold.solver.core.api.solver.change.ProblemChange; import ai.timefold.solver.core.config.solver.SolverManagerConfig; import ai.timefold.solver.core.config.util.ConfigUtils;