method refs: shorten class names in qualifiers supported (IDEA-92724)

This commit is contained in:
Anna Kozlova
2012-10-12 10:52:07 +02:00
parent 4edd2978d5
commit 074c756386
8 changed files with 9 additions and 8 deletions

View File

@@ -8,6 +8,6 @@ class NonStaticInner {
Inner m(NonStaticInner rec);
}
static {
I1 i1 = NonStaticInner.Inner::new;
I1 i1 = Inner::new;
}
}

View File

@@ -12,6 +12,6 @@ class StaticInner {
static {
I1 i1 = StaticInner.Inner::new;
I1 i1 = Inner::new;
}
}

View File

@@ -22,7 +22,7 @@ class NonStaticInner3 {
}
{
I1<Foo> b1 = NonStaticInner3.Foo::new;
I1<Foo> b1 = Foo::new;
I2<Foo> b2 = () -> new Foo();
}

View File

@@ -23,7 +23,7 @@ class NonStaticInner3 {
{
I1<Foo> b1 = (i) -> new Foo(i);
I2<Foo> b2 = NonStaticInner3.Foo::new;
I2<Foo> b2 = Foo::new;
}
{

View File

@@ -27,7 +27,7 @@ class NonStaticInner3 {
}
{
I3<Foo> b1 = NonStaticInner3.Foo::new;
I3<Foo> b1 = Foo::new;
I4<Foo> b2 = (rec) -> rec.new Foo();
}
}

View File

@@ -28,6 +28,6 @@ class NonStaticInner3 {
{
I3<Foo> b1 = (rec, i) -> rec.new Foo(i);
I4<Foo> b2 = NonStaticInner3.Foo::new;
I4<Foo> b2 = Foo::new;
}
}

View File

@@ -8,6 +8,6 @@ class NonStaticInner3 {
}
{
I1<Foo> b2 = NonStaticInner3.Foo::new;
I1<Foo> b2 = Foo::new;
}
}