Avoid duplicate synthetic parameter marking in FunctionCodegen

This commit is contained in:
Alexander Udalov
2014-07-04 22:36:55 +04:00
parent 374d50609d
commit 780fb78529
@@ -196,7 +196,7 @@ public class FunctionCodegen extends ParentCodegenAware {
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
private void generateJetValueParameterAnnotations( private static void generateJetValueParameterAnnotations(
@NotNull MethodVisitor mv, @NotNull MethodVisitor mv,
@NotNull FunctionDescriptor functionDescriptor, @NotNull FunctionDescriptor functionDescriptor,
@NotNull JvmMethodSignature jvmSignature @NotNull JvmMethodSignature jvmSignature
@@ -206,10 +206,7 @@ public class FunctionCodegen extends ParentCodegenAware {
for (int i = 0; i < kotlinParameterTypes.size(); i++) { for (int i = 0; i < kotlinParameterTypes.size(); i++) {
JvmMethodParameterKind kind = kotlinParameterTypes.get(i).getKind(); JvmMethodParameterKind kind = kotlinParameterTypes.get(i).getKind();
if (kind.isSkippedInGenericSignature()) { if (kind.isSkippedInGenericSignature()) continue;
markEnumOrInnerConstructorParameterAsSynthetic(mv, i);
continue;
}
String name; String name;
boolean nullableType; boolean nullableType;