Minor. Split method VariableTypeResolver.process

It looks much natural to differ type resolution and setting
compile time initializer to descriptor
This commit is contained in:
Denis Zharkov
2016-11-10 13:42:46 +03:00
parent bce023c8ad
commit e21ecbe702
4 changed files with 29 additions and 37 deletions
@@ -52,11 +52,6 @@ public abstract class VariableDescriptorWithInitializerImpl extends VariableDesc
@Nullable
@Override
public ConstantValue<?> getCompileTimeInitializer() {
// Force computation and setting of compileTimeInitializer, if needed
if (compileTimeInitializer == null) {
outType.getConstructor();
}
if (compileTimeInitializer != null) {
return compileTimeInitializer.invoke();
}