|
41 | 41 | import java.util.ArrayList;
|
42 | 42 | import java.util.Comparator;
|
43 | 43 | import java.util.List;
|
44 |
| -import java.util.concurrent.*; |
| 44 | +import java.util.concurrent.CancellationException; |
| 45 | +import java.util.concurrent.CompletableFuture; |
| 46 | +import java.util.concurrent.Future; |
| 47 | +import java.util.concurrent.TimeUnit; |
| 48 | +import java.util.concurrent.TimeoutException; |
45 | 49 | import java.util.concurrent.atomic.AtomicBoolean;
|
46 | 50 | import java.util.concurrent.atomic.AtomicInteger;
|
47 | 51 | import java.util.concurrent.atomic.AtomicReference;
|
@@ -117,7 +121,8 @@ boolean needRestart(@NotNull Command next) {
|
117 | 121 | */
|
118 | 122 | void shutdown() {
|
119 | 123 | if (!process.isProcessTerminated()) {
|
120 |
| - LOG.info("shutting down Flutter device daemon #" + id + ": " + command.toString(FlutterSettings.getInstance().isFilePathLoggingEnabled())); |
| 124 | + LOG.info( |
| 125 | + "shutting down Flutter device daemon #" + id + ": " + command.toString(FlutterSettings.getInstance().isFilePathLoggingEnabled())); |
121 | 126 | }
|
122 | 127 | listener.running.set(false);
|
123 | 128 | process.destroyProcess();
|
@@ -209,7 +214,6 @@ DeviceDaemon start(Supplier<Boolean> isCancelled,
|
209 | 214 | Runnable deviceChanged,
|
210 | 215 | Consumer<String> processStopped) throws ExecutionException {
|
211 | 216 | final int daemonId = nextDaemonId.incrementAndGet();
|
212 |
| - //noinspection UnnecessaryToStringCall |
213 | 217 | LOG.info("starting Flutter device daemon #" + daemonId + ": " + toString(FlutterSettings.getInstance().isFilePathLoggingEnabled()));
|
214 | 218 | // The mostly silent process handler reduces CPU usage of the daemon process.
|
215 | 219 | final ProcessHandler process = new MostlySilentColoredProcessHandler(toCommandLine());
|
|
0 commit comments