mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
Fix broken comment
This commit is contained in:
parent
84914aa5c8
commit
c783c431b1
@ -304,7 +304,7 @@ fun propertiesForSerializationFromSetters(
|
||||
throw NotSerializableException("Defined setter for parameter ${property.value.field?.name} " +
|
||||
"takes too many arguments")
|
||||
}
|
||||
|
||||
|
||||
val setterType = setter.genericParameterTypes[0]!!
|
||||
|
||||
if ((property.value.field != null) &&
|
||||
@ -314,7 +314,7 @@ fun propertiesForSerializationFromSetters(
|
||||
"${property.value.field?.genericType!!}")
|
||||
}
|
||||
|
||||
// make sure the setter returns the same type (within inheritance bounds) the getter accepts
|
||||
// make sure the getter returns the same type (within inheritance bounds) the setter accepts
|
||||
if (!(TypeToken.of (getter.genericReturnType).isSupertypeOf(setterType))) {
|
||||
throw NotSerializableException("Defined setter for parameter ${property.value.field?.name} " +
|
||||
"takes parameter of type $setterType yet the defined getter returns a value of type " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user