andi-huber commented on code in PR #1044:
URL: https://github.com/apache/isis/pull/1044#discussion_r938412339
##########
core/metamodel/src/main/java/org/apache/isis/core/metamodel/objectmanager/ObjectManager.java:
##########
@@ -190,21 +190,20 @@ public default ManagedObject adapt(
||
pojo.getClass().equals(proposedSpec.getCorrespondingClass()))
// if actual type matches spec's, we assume, that we don't need to
reload,
// so this is a shortcut for performance reasons
- ? autoBookmarked(proposedSpec, pojo,
EntityAdaptingMode.MEMOIZE_BOOKMARK)
+ ? managedObjectFor(proposedSpec, pojo,
EntityAdaptingMode.MEMOIZE_BOOKMARK)
// fallback, ignoring proposedSpec
: adapt(pojo);
return adapter;
}
// -- HELPER
- private static ManagedObject autoBookmarked(
Review Comment:
TODO: rename to its original with java-doc explaining the rational
--
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]