Minor. fixes after review
This commit is contained in:
+2
-3
@@ -24,8 +24,7 @@ interface FlexibleTypeDeserializer {
|
||||
fun create(proto: ProtoBuf.Type, flexibleId: String, lowerBound: SimpleType, upperBound: SimpleType): KotlinType
|
||||
|
||||
object ThrowException : FlexibleTypeDeserializer {
|
||||
private fun error(): Nothing = throw IllegalArgumentException("This factory should not be used.")
|
||||
|
||||
override fun create(proto: ProtoBuf.Type, flexibleId: String, lowerBound: SimpleType, upperBound: SimpleType): KotlinType = error()
|
||||
override fun create(proto: ProtoBuf.Type, flexibleId: String, lowerBound: SimpleType, upperBound: SimpleType): KotlinType
|
||||
= throw IllegalArgumentException("This method should not be used.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user