-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce repository access #2447
Reduce repository access #2447
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2447 +/- ##
============================================
- Coverage 87.28% 87.21% -0.08%
- Complexity 2659 2665 +6
============================================
Files 232 233 +1
Lines 7110 7123 +13
Branches 1084 1085 +1
============================================
+ Hits 6206 6212 +6
- Misses 359 362 +3
- Partials 545 549 +4 ☔ View full report in Codecov by Sentry. |
bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/LazyValue.java
Outdated
Show resolved
Hide resolved
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | ||
package com.adobe.cq.wcm.core.components.internal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be moved outside of internal so that it can also be used in our proxy classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, although this would be an extension of the public API, and so I would like to have it at least discussed here. Will raise that point when this PR has been merged.
Kudos, SonarCloud Quality Gate passed! |
Quality Gate passedIssues Measures |
@joerghoh, LGTM, thank you. |
Improve SlingModels to calculate values more lazily to avoid costly repository access for values, which might not be used at all.