Skip to content

Commit

Permalink
OAK-11304: Remove usage of Guava Collections2 - improve array constru…
Browse files Browse the repository at this point in the history
…ctors
  • Loading branch information
reschke committed Dec 13, 2024
1 parent 04576a4 commit 5e71bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public boolean isAllow() {
@NotNull
@Override
public String[] getRestrictionNames() {
return restrictions.stream().map(this::getJcrName).toArray(String::new);
return restrictions.stream().map(this::getJcrName).toArray(String[]::new);
}

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public int size() {
public String[] getRestrictionNames() {
return getRestrictionProvider().getSupportedRestrictions(getOakPath()).
stream().map(definition -> namePathMapper.getJcrName(definition.getName())).
toArray(String::new);
toArray(String[]::new);
}

@Override
Expand Down

0 comments on commit 5e71bd5

Please sign in to comment.