Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 committed Sep 18, 2024
1 parent 512911a commit 8e4157f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ public final PatchResponse<T> patch(UriInfo uriInfo, UUID id, String user, JsonP

prepareInternal(updated, true);
// Validate and populate owners
List<EntityReference> validateOwners = validateAndGetOwners(updated.getOwners());
List<EntityReference> validateOwners = getValidatedOwners(updated.getOwners());
updated.setOwners(validateOwners);

restorePatchAttributes(original, updated);
Expand Down Expand Up @@ -970,7 +970,7 @@ public final PatchResponse<T> patch(UriInfo uriInfo, String fqn, String user, Js

prepareInternal(updated, true);
// Validate and populate owners
List<EntityReference> validateOwners = validateAndGetOwners(updated.getOwners());
List<EntityReference> validateOwners = getValidatedOwners(updated.getOwners());
updated.setOwners(validateOwners);
restorePatchAttributes(original, updated);

Expand Down Expand Up @@ -1977,7 +1977,7 @@ public final void inheritReviewers(T entity, Fields fields, EntityInterface pare
}
}

protected List<EntityReference> validateAndGetOwners(List<EntityReference> owners) {
protected List<EntityReference> getValidatedOwners(List<EntityReference> owners) {
if (nullOrEmpty(owners)) {
return owners;
}
Expand Down

0 comments on commit 8e4157f

Please sign in to comment.