mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method with last declaration statement fixed (EA-64510 - IOE: PsiJavaCodeReferenceElementImpl.cannotBindError)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
class Test {
|
||||
{
|
||||
<selection>UrlClassLoader loader = UrlClassLoader.build().
|
||||
useCache(new UrlClassLoader.I() {
|
||||
@Override
|
||||
public void m() {}
|
||||
}).get();</selection>
|
||||
|
||||
System.out.println(loader);
|
||||
}
|
||||
|
||||
static class UrlClassLoader {
|
||||
static UrlClassLoader build() {return new UrlClassLoader();}
|
||||
UrlClassLoader useCache(I i) {
|
||||
return this;
|
||||
}
|
||||
|
||||
interface I {
|
||||
void m();
|
||||
}
|
||||
|
||||
UrlClassLoader get() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
class Test {
|
||||
{
|
||||
UrlClassLoader loader = newMethod();
|
||||
|
||||
System.out.println(loader);
|
||||
}
|
||||
|
||||
private UrlClassLoader newMethod() {
|
||||
return UrlClassLoader.build().
|
||||
useCache(new UrlClassLoader.I() {
|
||||
@Override
|
||||
public void m() {}
|
||||
}).get();
|
||||
}
|
||||
|
||||
static class UrlClassLoader {
|
||||
static UrlClassLoader build() {return new UrlClassLoader();}
|
||||
UrlClassLoader useCache(I i) {
|
||||
return this;
|
||||
}
|
||||
|
||||
interface I {
|
||||
void m();
|
||||
}
|
||||
|
||||
UrlClassLoader get() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user