Java: fix PsiClass.getScope() method which was broken by the migration to the new stubs api (IDEA-376896)

GitOrigin-RevId: e204142d2cd57a6cdb83285064ec21fe15b8270b
This commit is contained in:
Bas Leijdekkers
2025-08-11 19:24:55 +00:00
committed by intellij-monorepo-bot
parent 1030e9fc1f
commit 77536725b9
4 changed files with 27 additions and 14 deletions
@@ -0,0 +1,12 @@
class NoStaticInInnerClass {
{
new Inner();
}
class Inner {
{
System.out.println("Sunshine and happiness");
}
}
}
@@ -97,4 +97,11 @@ class WithArrayReference {
private void <warning descr="Method 'foo()' may be 'static'">foo</warning>() {
IntSupplier aNew = Object[]::new;
}
}
class InnerClassScope {
class Inner {}
Inner create() {
return new Inner();
}
}