Minor: move builtIns initialization into constructor

This commit is contained in:
Pavel V. Talanov
2015-09-23 18:56:44 +03:00
parent 0ae842a05d
commit 4b9e167fd2
@@ -74,7 +74,6 @@ public class KotlinBuiltIns {
initializing = true;
try {
instance = new KotlinBuiltIns();
instance.doInitialize();
}
catch (Throwable e) {
initializationFailed = e;
@@ -139,9 +138,6 @@ public class KotlinBuiltIns {
primitiveTypeToArrayJetType = new EnumMap<PrimitiveType, JetType>(PrimitiveType.class);
primitiveJetTypeToJetArrayType = new HashMap<JetType, JetType>();
jetArrayTypeToPrimitiveJetType = new HashMap<JetType, JetType>();
}
private void doInitialize() {
for (PrimitiveType primitive : PrimitiveType.values()) {
makePrimitive(primitive);
}