mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
do not try to generify according to failed diamond inference
This commit is contained in:
@@ -203,8 +203,10 @@ public class BindingFactory {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
b3.myBindings.put(i, type);
|
if (type != PsiType.NULL) {
|
||||||
b3.myCyclic = type instanceof PsiTypeVariable;
|
b3.myBindings.put(i, type);
|
||||||
|
b3.myCyclic = type instanceof PsiTypeVariable;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -216,8 +218,10 @@ public class BindingFactory {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
b3.myBindings.put(i, type);
|
if (type != PsiType.NULL) {
|
||||||
b3.myCyclic = type instanceof PsiTypeVariable;
|
b3.myBindings.put(i, type);
|
||||||
|
b3.myCyclic = type instanceof PsiTypeVariable;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -234,12 +238,11 @@ public class BindingFactory {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == null) {
|
if (type != PsiType.NULL) {
|
||||||
return null;
|
b3.myBindings.put(i, type);
|
||||||
|
b3.myCyclic = type instanceof PsiTypeVariable;
|
||||||
}
|
}
|
||||||
|
|
||||||
b3.myBindings.put(i, type);
|
|
||||||
b3.myCyclic = type instanceof PsiTypeVariable;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
java.util.ArrayList\nPsiField:l
|
||||||
|
java.util.ArrayList\nnew
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
java.util.ArrayList\nPsiField:l
|
||||||
|
java.util.ArrayList\nnew
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
class Test
|
||||||
|
{
|
||||||
|
ArrayList l = new ArrayList<>(8);
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
class Test
|
||||||
|
{
|
||||||
|
ArrayList l = new ArrayList<>(8);
|
||||||
|
}
|
||||||
@@ -648,6 +648,10 @@ public class TypeCookTest extends MultiFileTestCase {
|
|||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testT152() throws Exception {
|
||||||
|
start();
|
||||||
|
}
|
||||||
|
|
||||||
public void start() throws Exception {
|
public void start() throws Exception {
|
||||||
start(false);
|
start(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user