diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/HotSwapUIImpl.java b/java/debugger/impl/src/com/intellij/debugger/ui/HotSwapUIImpl.java index 8b40fa5ed92d..89c5cdab0d35 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/HotSwapUIImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/HotSwapUIImpl.java @@ -82,7 +82,7 @@ public final class HotSwapUIImpl extends HotSwapUI { private void hotSwapSessions(@NotNull final List sessions, @Nullable final Map> generatedPaths, - @Nullable final NotNullLazyValue> outputPaths, + @Nullable final NotNullLazyValue> outputPaths, @Nullable final HotSwapStatusListener callback) { final boolean shouldAskBeforeHotswap = myAskBeforeHotswap; myAskBeforeHotswap = true; @@ -229,7 +229,7 @@ public final class HotSwapUIImpl extends HotSwapUI { @NotNull private static Map> scanForModifiedClassesWithProgress(@NotNull List sessions, - @Nullable NotNullLazyValue> outputPaths, + @Nullable NotNullLazyValue> outputPaths, @NotNull HotSwapProgressImpl progress) { return ProgressManager.getInstance().runProcess(() -> { try { @@ -326,8 +326,9 @@ public final class HotSwapUIImpl extends HotSwapUI { Map> generatedPaths = collectGeneratedPaths(context); HotSwapStatusListener callback = context.getUserData(HOT_SWAP_CALLBACK_KEY); - NotNullLazyValue> outputRoots = context.getDirtyOutputPaths() - .map(stream -> NotNullLazyValue.createValue(() -> stream.collect(Collectors.toCollection(SmartList::new)))).orElse(null); + NotNullLazyValue> outputRoots = context.getDirtyOutputPaths() + .map(stream -> NotNullLazyValue.createValue(() -> (List)stream.collect(Collectors.toCollection(SmartList::new)))) + .orElse(null); instance.hotSwapSessions(sessions, generatedPaths, outputRoots, callback); } }