Use AnnotationSplitter for annotations on setter parameter
Make it possible to specify annotations of the setter parameter when constructing the default setter via DescriptorFactory; pass the split annotations in DescriptorResolver.resolvePropertySetterDescriptor #KT-25500 Fixed
This commit is contained in:
+4
-1
@@ -118,7 +118,10 @@ class MemberDeserializer(private val c: DeserializationContext) {
|
||||
setter.initialize(valueParameters.single())
|
||||
setter
|
||||
} else {
|
||||
DescriptorFactory.createDefaultSetter(property, annotations)
|
||||
DescriptorFactory.createDefaultSetter(
|
||||
property, annotations,
|
||||
Annotations.EMPTY /* Otherwise presumably the setter is not default */
|
||||
)
|
||||
}
|
||||
} else {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user