You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2020/03/19 21:33:12 UTC

[sling-org-apache-sling-app-cms] 02/02: Minor - fixing SonarQube warning

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit fef00f12da4b53db69a7b20e92e8f6be998b6c99
Author: Dan Klco <dk...@apache.org>
AuthorDate: Thu Mar 19 17:32:59 2020 -0400

    Minor - fixing SonarQube warning
---
 .../apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java b/core/src/main/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java
index d6d9a90..f4f873b 100644
--- a/core/src/main/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java
+++ b/core/src/main/java/org/apache/sling/cms/core/internal/models/AuthorizableWrapperImpl.java
@@ -86,7 +86,7 @@ public class AuthorizableWrapperImpl implements AuthorizableWrapper {
 
     @Override
     public Iterator<String> getGroupNames() {
-        Iterable<Group> iterable = () -> getMembership();
+        Iterable<Group> iterable = this::getMembership;
         return StreamSupport.stream(iterable.spliterator(), false).map(g -> {
             try {
                 return g.getPrincipal().getName();