KT-3459 "import java.util.*" is removed by optimize imports if the only usage is a SAM constructor

#KT-3459 fixed
This commit is contained in:
Evgeny Gerashchenko
2013-04-03 17:42:44 +04:00
parent 8f1b728a08
commit 6e43b78deb
8 changed files with 21 additions and 2 deletions
@@ -361,6 +361,7 @@ public final class JavaFunctionResolver {
SimpleFunctionDescriptor constructorFunction = SingleAbstractMethodUtils.createSamConstructorFunction(ownerDescriptor,
klass);
trace.record(BindingContext.SAM_CONSTRUCTOR_TO_INTERFACE, constructorFunction, klass);
trace.record(BindingContext.SOURCE_DESCRIPTOR_FOR_SYNTHESIZED, constructorFunction, klass);
return constructorFunction;
}
}