This commit is contained in:
Roman Shevchenko
2012-05-30 20:24:42 +04:00
parent ecfdb5c6a2
commit 21e3ef5881
2 changed files with 7 additions and 8 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -93,7 +93,6 @@ public class PsiTypeElementImpl extends CompositePsiElement implements PsiTypeEl
addTypeUseAnnotationsFromModifierList(getParent(), typeAnnotations);
final PsiAnnotation[] array = toAnnotationsArray(typeAnnotations);
cachedType = JavaPsiFacade.getInstance(getProject()).getElementFactory().createPrimitiveType(element.getText(), array);
assert cachedType != null;
}
else if (elementType == JavaElementType.TYPE) {
final IElementType tailType = getLastChildNode().getElementType();