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 b3fd75b4f7b5be2fbae4607ed4429b3f1ba5cb38 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat Mar 28 13:34:24 2026 +0100 fix: replace deprecated ReadAction.compute() in StrutsConstantHelper --- .../com/intellij/struts2/model/constant/StrutsConstantHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/intellij/struts2/model/constant/StrutsConstantHelper.java b/src/main/java/com/intellij/struts2/model/constant/StrutsConstantHelper.java index 471f3c9..ed08b58 100644 --- a/src/main/java/com/intellij/struts2/model/constant/StrutsConstantHelper.java +++ b/src/main/java/com/intellij/struts2/model/constant/StrutsConstantHelper.java @@ -65,9 +65,10 @@ public final class StrutsConstantHelper { extensions = CachedValuesManager.getManager(project).createCachedValue(() -> { NotNullLazyValue<List<String>> lazyValue = NotNullLazyValue.atomicLazy(() -> { final List<String> extensions1 = - ReadAction.compute(() -> StrutsConstantManager.getInstance(project) + ReadAction.nonBlocking(() -> StrutsConstantManager.getInstance(project) .getConvertedValue(psiFile, - StrutsCoreConstantContributor.ACTION_EXTENSION)); + StrutsCoreConstantContributor.ACTION_EXTENSION)) + .executeSynchronously(); if (extensions1 == null) { return Collections.emptyList();
