"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/android-extensions/android-extensions-compiler/src/org/jetbrains/kotlin/android/parcel/ParcelableClinitClassBuilderInterceptorExtension.kt" between
kotlin-1.3.20.tar.gz and kotlin-1.3.21.tar.gz

About: Kotlin is a Java like statically typed programming language for the JVM, Android and the browser. Source code.

ParcelableClinitClassBuilderInterceptorExtension.kt  (kotlin-1.3.20):ParcelableClinitClassBuilderInterceptorExtension.kt  (kotlin-1.3.21)
skipping to change at line 137 skipping to change at line 137
return ClinitAwareMethodVisitor( return ClinitAwareMethodVisitor(
currentClassName!!, currentClassName!!,
super.newMethod(origin, access, name, desc, signatur e, exceptions)) super.newMethod(origin, access, name, desc, signatur e, exceptions))
} }
} }
return super.newMethod(origin, access, name, desc, signature, except ions) return super.newMethod(origin, access, name, desc, signature, except ions)
} }
} }
private class ClinitAwareMethodVisitor(val parcelableName: String, mv: Metho dVisitor) : MethodVisitor(Opcodes.ASM5, mv) { private class ClinitAwareMethodVisitor(val parcelableName: String, mv: Metho dVisitor) : MethodVisitor(Opcodes.API_VERSION, mv) {
override fun visitInsn(opcode: Int) { override fun visitInsn(opcode: Int) {
if (opcode == Opcodes.RETURN) { if (opcode == Opcodes.RETURN) {
val iv = InstructionAdapter(this) val iv = InstructionAdapter(this)
val creatorName = "$parcelableName\$Creator" val creatorName = "$parcelableName\$Creator"
val creatorType = Type.getObjectType(creatorName) val creatorType = Type.getObjectType(creatorName)
iv.anew(creatorType) iv.anew(creatorType)
iv.dup() iv.dup()
iv.invokespecial(creatorName, "<init>", "()V", false) iv.invokespecial(creatorName, "<init>", "()V", false)
iv.putstatic(parcelableName, "CREATOR", "Landroid/os/Parcelable\ $Creator;") iv.putstatic(parcelableName, "CREATOR", "Landroid/os/Parcelable\ $Creator;")
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)