Browse code

FEATBL-860: fix variable and method named

Manuel Guilley authored on 14/10/2019 14:14:49
Showing 1 changed files
... ...
@@ -86,22 +86,22 @@ public class UserSharingsCommand extends SingleOrDomainOperation {
86 86
 			if(containerDescriptor.owner.equalsIgnoreCase(de.uid) == owned) {			
87 87
 				IContainerManagement containerManager = ctx.adminApi().instance(IContainerManagement.class, containerDescriptor.uid);
88 88
 				List<AccessControlEntry> acls = containerManager.getAccessControlList();
89
-				List<AccessControlEntry> aclsWithoutUser = new ArrayList<>();
89
+				List<AccessControlEntry> aclsFiltered = new ArrayList<>();
90 90
 				for (AccessControlEntry acl : acls) {
91 91
 					//Do not garbage your own shares
92 92
 					if(acl.subject.equalsIgnoreCase(de.uid) != owned) {
93
-						aclsWithoutUser.add(acl);
93
+						aclsFiltered.add(acl);
94 94
 					}
95 95
 				}
96
-				aclsNumbers += aclsWithoutUser.size();
97
-				if(!aclsWithoutUser.isEmpty()) {
98
-					map.put(containerDescriptor, aclsWithoutUser);
96
+				aclsNumbers += aclsFiltered.size();
97
+				if(!aclsFiltered.isEmpty()) {
98
+					map.put(containerDescriptor, aclsFiltered);
99 99
 				}
100 100
 			}
101 101
 		}
102
-		displayGiven(map, aclsNumbers, domainUid);
102
+		display(map, aclsNumbers, domainUid);
103 103
 	}
104
-	private void displayGiven(Map<ContainerDescriptor, List<AccessControlEntry>> map, int size, String domainUid) {
104
+	private void display(Map<ContainerDescriptor, List<AccessControlEntry>> map, int size, String domainUid) {
105 105
 		//Used to add a row to include the header
106 106
 		size++;
107 107