Remove inline function usages that break JPS compilation
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ fun <T : Any> collectProperties(kClass: KClass<T>, inheritedOnly: Boolean): List
|
|||||||
properties.removeAll(kClass.declaredMemberProperties)
|
properties.removeAll(kClass.declaredMemberProperties)
|
||||||
}
|
}
|
||||||
return properties.filter {
|
return properties.filter {
|
||||||
it.visibility == KVisibility.PUBLIC && it.findAnnotation<Transient>() == null
|
it.visibility == KVisibility.PUBLIC && (it.annotations.firstOrNull { it is Transient } as Transient?) == null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ fun <A : CommonToolArguments> parseCommandLineArguments(args: List<String>, resu
|
|||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
val properties = result::class.memberProperties.mapNotNull { property ->
|
val properties = result::class.memberProperties.mapNotNull { property ->
|
||||||
if (property !is KMutableProperty1<*, *>) return@mapNotNull null
|
if (property !is KMutableProperty1<*, *>) return@mapNotNull null
|
||||||
val argument = property.findAnnotation<Argument>() ?: return@mapNotNull null
|
val argument = property.annotations.firstOrNull { it is Argument } as Argument? ?: return@mapNotNull null
|
||||||
ArgumentField(property as KMutableProperty1<A, Any?>, argument)
|
ArgumentField(property as KMutableProperty1<A, Any?>, argument)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user