always successful asserts removed

This commit is contained in:
Alex Tkachman
2012-08-23 18:05:33 +03:00
parent 08c5032734
commit 69f5ef2862
2 changed files with 2 additions and 3 deletions
@@ -751,6 +751,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
mv.visitInsn(RETURN);
FunctionCodegen.endVisit(mv, "constructor", myClass);
assert constructorDescriptor != null;
FunctionCodegen.generateDefaultIfNeeded(constructorContext, state, v, constructorMethod.getAsmMethod(), constructorDescriptor,
OwnerKind.IMPLEMENTATION);
}
@@ -143,7 +143,6 @@ public class PropertyCodegen {
assert setterDescriptor != null;
JvmPropertyAccessorSignature signature =
state.getInjector().getJetTypeMapper().mapSetterSignature(propertyDescriptor, kind);
assert signature != null;
functionCodegen.generateMethod(setter, signature.getJvmMethodSignature(), true, signature.getPropertyTypeKotlinSignature(),
setterDescriptor);
}
@@ -298,7 +297,7 @@ public class PropertyCodegen {
}
JvmPropertyAccessorSignature signature = state.getInjector().getJetTypeMapper().mapSetterSignature(propertyDescriptor, kind);
assert signature != null;
assert true;
final String descriptor = signature.getJvmMethodSignature().getAsmMethod().getDescriptor();
MethodVisitor mv = v.newMethod(origin, flags, setterName(propertyDescriptor.getName()), descriptor, null, null);
PropertySetterDescriptor setter = propertyDescriptor.getSetter();
@@ -367,7 +366,6 @@ public class PropertyCodegen {
if (declaration.isVar()) {
jvmPropertyAccessorSignature = state.getInjector().getJetTypeMapper().mapSetterSignature(declaration, OwnerKind.IMPLEMENTATION);
assert jvmPropertyAccessorSignature != null;
functionCodegen.genDelegate(declaration, overriddenDescriptor, field, jvmPropertyAccessorSignature.getJvmMethodSignature());
}
}