File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4343import java .util .Properties ;
4444import java .util .Set ;
4545import java .util .concurrent .TimeUnit ;
46+ import java .util .stream .Collectors ;
4647
4748import javax .jcr .NamespaceException ;
4849import javax .jcr .Node ;
5657import javax .jcr .nodetype .PropertyDefinitionTemplate ;
5758import javax .jcr .security .Privilege ;
5859
59- import org .apache .jackrabbit .guava .common .collect .Lists ;
6060import org .apache .commons .collections4 .bidimap .DualHashBidiMap ;
6161import org .apache .jackrabbit .JcrConstants ;
6262import org .apache .jackrabbit .api .security .authorization .PrivilegeManager ;
@@ -772,8 +772,9 @@ private void copyCustomPrivileges(PrivilegeManager pMgr) throws RepositoryExcept
772772 while (it .hasNext ()) {
773773 Privilege aggrPriv = it .next ();
774774
775- List <String > aggrNames = Lists .transform (Arrays .asList (aggrPriv .getDeclaredAggregatePrivileges ()),
776- input -> (input == null ) ? null : input .getName ());
775+ List <String > aggrNames = Arrays .stream (aggrPriv .getDeclaredAggregatePrivileges ())
776+ .map (input -> (input == null ) ? null : input .getName ())
777+ .collect (Collectors .toList ());
777778 if (allAggregatesRegistered (pMgr , aggrNames )) {
778779 pMgr .registerPrivilege (aggrPriv .getName (), aggrPriv .isAbstract (), aggrNames .toArray (new String [aggrNames .size ()]));
779780 it .remove ();
You can’t perform that action at this time.
0 commit comments