QuickFix for UNCHECKED_CAST
This commit is contained in:
committed by
Evgeny Gerashchenko
parent
db99492b9c
commit
1f3739415a
@@ -62,6 +62,13 @@ public class JetPsiFactory {
|
||||
return property.getTypeRef();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static PsiElement createStar(Project project) {
|
||||
PsiElement star = createType(project, "List<*>").findElementAt(5);
|
||||
assert star != null;
|
||||
return star;
|
||||
}
|
||||
|
||||
//the pair contains the first and the last elements of a range
|
||||
public static Pair<PsiElement, PsiElement> createColonAndWhiteSpaces(Project project) {
|
||||
JetProperty property = createProperty(project, "val x : Int");
|
||||
|
||||
Reference in New Issue
Block a user