This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git
The following commit(s) were added to refs/heads/main by this push:
new f150c72 refactor: replace deprecated EXTEND_CLASS_NAMES with
SUPER_CLASSES (#70)
f150c72 is described below
commit f150c72b4dfbf292c6fdcbdbadce7ef5c0f20373
Author: Lukasz Lenart <[email protected]>
AuthorDate: Wed Apr 8 06:48:59 2026 +0200
refactor: replace deprecated EXTEND_CLASS_NAMES with SUPER_CLASSES (#70)
Replace JavaClassReferenceProvider.EXTEND_CLASS_NAMES (deprecated, scheduled
for removal) with the supported SUPER_CLASSES option in
ConstantValueClassConverter.
Guard the option so it is only set when baseClass is non-empty, preserving
the existing "any concrete non-interface class" semantics for constants like
struts.configuration and struts.mapper.class that intentionally pass "".
🤖 Generated by AI Assistant
Made-with: Cursor
---
.../model/constant/contributor/ConstantValueClassConverter.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/src/main/java/com/intellij/struts2/model/constant/contributor/ConstantValueClassConverter.java
b/src/main/java/com/intellij/struts2/model/constant/contributor/ConstantValueClassConverter.java
index 16b6aee..3cd2b7c 100644
---
a/src/main/java/com/intellij/struts2/model/constant/contributor/ConstantValueClassConverter.java
+++
b/src/main/java/com/intellij/struts2/model/constant/contributor/ConstantValueClassConverter.java
@@ -54,9 +54,9 @@ class ConstantValueClassConverter extends
ResolvingConverter<PsiClass> implement
javaClassReferenceProvider.setAllowEmpty(false);
javaClassReferenceProvider.setOption(JavaClassReferenceProvider.CONCRETE,
Boolean.TRUE);
javaClassReferenceProvider.setOption(JavaClassReferenceProvider.NOT_INTERFACE,
Boolean.TRUE);
- // TODO: EXTEND_CLASS_NAMES is deprecated but no replacement is
documented.
- //noinspection deprecation
-
javaClassReferenceProvider.setOption(JavaClassReferenceProvider.EXTEND_CLASS_NAMES,
new String[]{baseClass});
+ if (!baseClass.isEmpty()) {
+
javaClassReferenceProvider.setOption(JavaClassReferenceProvider.SUPER_CLASSES,
Collections.singletonList(baseClass));
+ }
}
@NotNull