This commit further refines 240f254 to also support java.util.Optional
for synchronized cache access (i.e. when the `sync` attribute on
`@Cacheable` is set to `true`).
Issue: SPR-14853
@ -340,12 +339,12 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -340,12 +339,12 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
// The invoker wraps any Throwable in a ThrowableWrapper instance so we
@ -380,18 +379,12 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -380,18 +379,12 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@ -408,6 +401,18 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -408,6 +401,18 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker