This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch 261.x
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git

commit c4713187e0adcdf2836fec7c6ce10ee433663f9f
Author: Lukasz Lenart <[email protected]>
AuthorDate: Sat Mar 28 13:34:27 2026 +0100

    fix: replace deprecated ReadAction.compute() in Struts2GraphFileEditor
---
 .../com/intellij/struts2/graph/fileEditor/Struts2GraphFileEditor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/com/intellij/struts2/graph/fileEditor/Struts2GraphFileEditor.java
 
b/src/main/java/com/intellij/struts2/graph/fileEditor/Struts2GraphFileEditor.java
index 9559b0d..73d0163 100644
--- 
a/src/main/java/com/intellij/struts2/graph/fileEditor/Struts2GraphFileEditor.java
+++ 
b/src/main/java/com/intellij/struts2/graph/fileEditor/Struts2GraphFileEditor.java
@@ -116,7 +116,7 @@ public class Struts2GraphFileEditor extends 
PerspectiveFileEditor {
     private Struts2GraphComponent createGraphComponent() {
         final Struts2GraphComponent[] graphComponent = {null};
         ProgressManager.getInstance().runProcessWithProgressSynchronously(
-                (Runnable) () -> graphComponent[0] = ReadAction.compute(() -> 
new Struts2GraphComponent(myXmlFile)), "Generating Graph", false, 
myXmlFile.getProject());
+                (Runnable) () -> graphComponent[0] = ReadAction.nonBlocking(() 
-> new Struts2GraphComponent(myXmlFile)).executeSynchronously(), "Generating 
Graph", false, myXmlFile.getProject());
 
 
         return graphComponent[0];

Reply via email to