Skip to content

Commit

Permalink
Fix: Spot Bug Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Feb 2, 2024
1 parent ada148c commit 5f7683a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ public void setApiCreatorTenantDomain(String apiCreatorTenantDomain) {
}

public List<URITemplate> getUriTemplates() {
return uriTemplates;
return new ArrayList(uriTemplates);
}

public void setUriTemplates(List<URITemplate> uriTemplates) {
this.uriTemplates = uriTemplates;
this.uriTemplates = new ArrayList(uriTemplates);
}

public void setApiPolicies(List<OperationPolicy> apiPolicies) {
this.apiPolicies = apiPolicies;
this.apiPolicies = new ArrayList(apiPolicies);
}

public List<OperationPolicy> getApiPolicies() {
return apiPolicies;
return new ArrayList(apiPolicies);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ public class URITemplate {
private List<OperationPolicy> operationPolicies = new ArrayList<>();

public void setOperationPolicies(List<OperationPolicy> operationPolicies) {
this.operationPolicies = operationPolicies;
this.operationPolicies = new ArrayList(operationPolicies);
}

public List<OperationPolicy> getOperationPolicies() {
return operationPolicies;
return new ArrayList(operationPolicies);
}

public void setHttpVerb(String httpVerb) {
Expand Down

0 comments on commit 5f7683a

Please sign in to comment.