Commit d66e2285 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fix: Use Java Collections.emptyList()

parent 022dd301
......@@ -18,13 +18,12 @@ package org.genesys.blocks.security.serialization;
import static org.springframework.security.acls.domain.BasePermission.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.genesys.blocks.security.model.AclEntry;
import org.genesys.blocks.security.model.AclSid;
import com.google.common.collect.Lists;
/**
* Simple POJO for SID's permissions.
*/
......@@ -73,7 +72,7 @@ public class SidPermissions extends Permissions {
return null;
}
if (aclEntries.isEmpty()) {
return Lists.newArrayList();
return Collections.emptyList();
}
List<SidPermissions> converted = new ArrayList<>(1 + aclEntries.size() / 5);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment