mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-05 06:01:30 +07:00
refactor java global inspection graph: extract writable interfaces
This is needed to avoid access to package-private members in platform modules from java modules (IDEA-200277).
This commit is contained in:
@@ -310,7 +310,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
boolean hasConstructorsMarked = false;
|
||||
|
||||
if (defaultConstructorOnly) {
|
||||
RefMethodImpl refDefaultConstructor = (RefMethodImpl)refClass.getDefaultConstructor();
|
||||
WritableRefElement refDefaultConstructor = (WritableRefElement)refClass.getDefaultConstructor();
|
||||
if (refDefaultConstructor != null) {
|
||||
refDefaultConstructor.addInReference(refFrom);
|
||||
refFrom.addOutReference(refDefaultConstructor);
|
||||
@@ -320,7 +320,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
else {
|
||||
for (RefMethod cons : refClass.getConstructors()) {
|
||||
if (cons instanceof RefImplicitConstructor) continue;
|
||||
((RefMethodImpl)cons).addInReference(refFrom);
|
||||
((WritableRefElement)cons).addInReference(refFrom);
|
||||
refFrom.addOutReference(cons);
|
||||
hasConstructorsMarked = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user