You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the StandardMetadata class has public constructors that are making it hard to evolve. Specifically we'd like to remove the nestedAnnotationsAsMap parameter, and make the default effectively nestedAnnotationsAsMap=true.
It's doubtful that anyone is using this class directly, but to be safe we could deprecate the constructors and use a factory method instead.
The text was updated successfully, but these errors were encountered:
Deprecate the public `StandardMetadata` constructors to make it clearer
that these classes should not be instantiated directly. A new
`AnnotationMetadata.introspect` factory method has been added which
can now be used to obtain instances.
This change will allow use to make the constructors package private
and drop the `nestedAnnotationsAsMap` parameter in a future release.
Closesspring-projectsgh-22906
Currently the
StandardMetadata
class has public constructors that are making it hard to evolve. Specifically we'd like to remove thenestedAnnotationsAsMap
parameter, and make the default effectivelynestedAnnotationsAsMap=true
.It's doubtful that anyone is using this class directly, but to be safe we could deprecate the constructors and use a factory method instead.
The text was updated successfully, but these errors were encountered: