mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
IDEA-28534 Intention enhancement: "Make class Foo implement interface Bar" implemented
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Make 'Foo' implement 'Foo.Bar'" "true"
|
||||
public class Foo implements Foo.Bar {
|
||||
|
||||
public Bar getBar() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public interface Bar {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Make 'Foo' implement 'Foo.Bar'" "false"
|
||||
public class Foo {
|
||||
|
||||
public void getBar() {
|
||||
Bar f = new F<caret>oo();
|
||||
}
|
||||
|
||||
public class Bar extends Foo {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Make 'Foo' implement 'Foo.Bar'" "true"
|
||||
public class Foo {
|
||||
|
||||
public Bar getBar() {
|
||||
return t<caret>his;
|
||||
}
|
||||
|
||||
public interface Bar {}
|
||||
}
|
||||
Reference in New Issue
Block a user