[java-psi] Use getFrequentIndex() in writeTYPE() as well

GitOrigin-RevId: 025f94606f23b1fb0d4ecbdeaf0cc7cb594e11fb
This commit is contained in:
Tagir Valeev
2021-11-10 07:28:59 +00:00
committed by intellij-monorepo-bot
parent 1b5661065a
commit ba80e056fa
@@ -259,7 +259,7 @@ public final class TypeInfo {
String text = typeInfo.text;
byte arrayCount = typeInfo.arrayCount;
int frequentIndex = ourFrequentTypeIndex.getInt(text);
int frequentIndex = getFrequentIndex(text);
boolean hasTypeAnnotations = typeInfo.myTypeAnnotations != null && !typeInfo.myTypeAnnotations.isEmpty();
int flags = (typeInfo.isEllipsis ? HAS_ELLIPSIS : 0) | (arrayCount != 0 ? HAS_ARRAY_COUNT : 0) |
(hasTypeAnnotations ? HAS_TYPE_ANNOTATIONS : 0) | frequentIndex;