Fixes after merge remote-tracking branch 'remotes/open/master' into szymonsztuka/os-merge-20180824

This commit is contained in:
szymonsztuka
2018-08-24 12:27:47 +01:00
parent 598e3a327a
commit c7f666102f
11 changed files with 32 additions and 39 deletions

View File

@ -515,8 +515,3 @@ fun <T : Any> SerializedBytes<Any>.checkPayloadIs(type: Class<T>): Untrustworthy
return type.castIfPossible(payloadData)?.let { UntrustworthyData(it) }
?: throw IllegalArgumentException("We were expecting a ${type.name} but we instead got a ${payloadData.javaClass.name} ($payloadData)")
}
/**
* Extension method to make this method visible to nodeapi module.
*/
fun MappedSchema.getMigrationResource(): String? = this.internalGetMigrationResource()