Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1191

Avoid unnecessary conversion invocation after Optional unwrapping

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Kay GA

      Description

      Before we try to convert a value returned by a repository method execution into one of the supported wrapper types, we unwrap a value from a potentially returned Optional. We should add a genera assignability check right after that so that all the downstream conversion attempts are not necessarily triggered if the value contained in the Optional is of matching type.

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: