Replace Regex.match and matchAll usages

This commit is contained in:
Ilya Gorbunov
2015-11-07 15:30:44 +03:00
parent f06d521bfe
commit 0579f6c8bf
4 changed files with 6 additions and 6 deletions
@@ -171,7 +171,7 @@ public object TypeIntrinsics {
*/
private fun getFunctionTypeArity(jetType: KotlinType): Int {
val classFqName = getClassFqName(jetType) ?: return -1
val match = KOTLIN_FUNCTION_INTERFACE_REGEX.match(classFqName) ?: return -1
val match = KOTLIN_FUNCTION_INTERFACE_REGEX.find(classFqName) ?: return -1
return Integer.valueOf(match.groups[1]!!.value)
}