codeconsole commented on code in PR #15583:
URL: https://github.com/apache/grails-core/pull/15583#discussion_r3164526835
##########
grails-data-mongodb/bson/src/main/groovy/org/grails/datastore/bson/codecs/encoders/IdentityEncoder.groovy:
##########
@@ -51,6 +70,14 @@ class IdentityEncoder implements PropertyEncoder<Identity> {
}
+ private static Class<?> resolveStoredAs(Identity property) {
+ try {
+ return property?.owner?.mapping?.identifier?.storedAs
+ } catch (Throwable ignored) {
Review Comment:
Fixed: narrowed every catch to Exception. The four duplicate core sites
collapsed into the new helper encoder's resolveStoredAs uses catch (Exception
ignored).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]