IDEA-28534 Intention enhancement: "Make class Foo implement interface Bar" implemented

This commit is contained in:
Danila Ponomarenko
2012-05-30 17:56:57 +04:00
parent 76efe6c29e
commit 0f472ce8b2
5 changed files with 38 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
// "Make 'Foo' implement 'Foo.Bar'" "true"
public class Foo implements Foo.Bar {
public Bar getBar() {
return this;
}
public interface Bar {}
}

View File

@@ -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 {
}
}

View File

@@ -0,0 +1,9 @@
// "Make 'Foo' implement 'Foo.Bar'" "true"
public class Foo {
public Bar getBar() {
return t<caret>his;
}
public interface Bar {}
}