mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix compilation?
This commit is contained in:
@@ -58,12 +58,12 @@ class AstLeaksTest extends LightCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
public void "test no hard refs to AST after highlighting"() {
|
||||
def sup = myFixture.addFileToProject 'sup.java', 'class Super { Super() {} }'
|
||||
def sup = myFixture.addFileToProject('sup.java', 'class Super { Super() {} }')
|
||||
assert sup.findElementAt(0) // load AST
|
||||
assert !((PsiFileImpl)sup).stub
|
||||
LeakHunter.checkLeak(sup, MethodElement)
|
||||
|
||||
def foo = myFixture.addFileToProject 'a.java', 'class Foo extends Super { void bar() { bar(); } }'
|
||||
def foo = myFixture.addFileToProject('a.java', 'class Foo extends Super { void bar() { bar(); } }')
|
||||
myFixture.configureFromExistingVirtualFile(foo.virtualFile)
|
||||
myFixture.doHighlighting()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user