Skip to content

Commit

Permalink
fix: do not create of new array list on each request
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg committed Nov 29, 2023
1 parent 978a2d5 commit 3906ee4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public int compare(Policy lps, Policy rps) {

@Override
public List<Policy> getList() {
return new ArrayList<>(policyList);
return policyList;
}

@Override
Expand Down

0 comments on commit 3906ee4

Please sign in to comment.