method refs: rename in case of constructor refs fixed

This commit is contained in:
anna
2012-12-18 13:07:30 +01:00
parent b706a40b73
commit 55ce55a20e
4 changed files with 39 additions and 1 deletions
@@ -0,0 +1,17 @@
public class FooBar {
private static final class B<caret>ar {
private Bar() {
}
}
private interface I<T> {
T create();
}
static void foo(I intf) {}
public static void main(String[] args) throws Exception {
foo(Bar::new);
}
}
@@ -0,0 +1,17 @@
public class FooBar {
private static final class Bar1 {
private Bar1() {
}
}
private interface I<T> {
T create();
}
static void foo(I intf) {}
public static void main(String[] args) throws Exception {
foo(Bar1::new);
}
}