mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
Cleanup: use simpler type for output paths in HotSwapUIImpl
GitOrigin-RevId: 4d23ca9d9d82645d704f7be9b8fb70fdf16d3d58
This commit is contained in:
committed by
intellij-monorepo-bot
parent
11adb0a7ae
commit
c93816e9c3
@@ -82,7 +82,7 @@ public final class HotSwapUIImpl extends HotSwapUI {
|
||||
|
||||
private void hotSwapSessions(@NotNull final List<DebuggerSession> sessions,
|
||||
@Nullable final Map<String, Collection<String>> generatedPaths,
|
||||
@Nullable final NotNullLazyValue<? extends List<String>> outputPaths,
|
||||
@Nullable final NotNullLazyValue<List<String>> 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<DebuggerSession, Map<String, HotSwapFile>> scanForModifiedClassesWithProgress(@NotNull List<DebuggerSession> sessions,
|
||||
@Nullable NotNullLazyValue<? extends List<String>> outputPaths,
|
||||
@Nullable NotNullLazyValue<List<String>> outputPaths,
|
||||
@NotNull HotSwapProgressImpl progress) {
|
||||
return ProgressManager.getInstance().runProcess(() -> {
|
||||
try {
|
||||
@@ -326,8 +326,9 @@ public final class HotSwapUIImpl extends HotSwapUI {
|
||||
Map<String, Collection<String>> generatedPaths = collectGeneratedPaths(context);
|
||||
|
||||
HotSwapStatusListener callback = context.getUserData(HOT_SWAP_CALLBACK_KEY);
|
||||
NotNullLazyValue<? extends List<String>> outputRoots = context.getDirtyOutputPaths()
|
||||
.map(stream -> NotNullLazyValue.createValue(() -> stream.collect(Collectors.toCollection(SmartList::new)))).orElse(null);
|
||||
NotNullLazyValue<List<String>> outputRoots = context.getDirtyOutputPaths()
|
||||
.map(stream -> NotNullLazyValue.createValue(() -> (List<String>)stream.collect(Collectors.toCollection(SmartList::new))))
|
||||
.orElse(null);
|
||||
instance.hotSwapSessions(sessions, generatedPaths, outputRoots, callback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user