mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[maven] IDEA-313767 LongRunningTask<R> -> LongRunningEmbedderTask<R> to avoid confusion with LongRunningTask
GitOrigin-RevId: f853fe239a8944dfc46fab376445cb5412017f09
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dc656ca0c9
commit
e03ee479c4
+2
-2
@@ -296,11 +296,11 @@ public abstract class MavenEmbedderWrapper extends MavenRemoteObjectWrapper<Mave
|
||||
myCustomization = null;
|
||||
}
|
||||
|
||||
protected abstract <R> R runLongRunningTask(@NotNull LongRunningTask<R> task,
|
||||
protected abstract <R> R runLongRunningTask(@NotNull LongRunningEmbedderTask<R> task,
|
||||
@Nullable MavenProgressIndicator progressIndicator) throws MavenProcessCanceledException;
|
||||
|
||||
@FunctionalInterface
|
||||
protected interface LongRunningTask<R> {
|
||||
protected interface LongRunningEmbedderTask<R> {
|
||||
R run(MavenServerEmbedder embedder, String longRunningTaskId) throws RemoteException, MavenServerProcessCanceledException;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.util.*
|
||||
|
||||
abstract class MavenEmbedderWrapperEx(project: Project) : MavenEmbedderWrapper(project) {
|
||||
@Throws(MavenProcessCanceledException::class)
|
||||
override fun <R> runLongRunningTask(task: LongRunningTask<R>,
|
||||
override fun <R> runLongRunningTask(task: LongRunningEmbedderTask<R>,
|
||||
progressIndicator: MavenProgressIndicator?): R =
|
||||
runBlocking {
|
||||
val longRunningTaskId = UUID.randomUUID().toString()
|
||||
|
||||
Reference in New Issue
Block a user