Skip to content

Commit

Permalink
corrected ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiyivanov committed Sep 11, 2022
1 parent 5eabf23 commit 84d55db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/com/taboola/backstage/model/APIError.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.taboola.backstage.model;

import java.util.Collection;
import java.util.List;

/**
* Created by vladi
Expand All @@ -17,7 +18,7 @@ public class APIError {
private String offendingField;
private String messageCode;
private String messageCodeEnglishTemplate;
private Collection<String> templateParameters;
private List<String> templateParameters;

public APIError() {
//for jackson
Expand All @@ -32,7 +33,7 @@ public APIError(String message, int httpStatus, String offendingField, String me
this(message, httpStatus, offendingField, messageCode, null, null);
}

public APIError(String message, int httpStatus, String offendingField, String messageCode, String messageCodeEnglishTemplate, Collection<String> templateParameters) {
public APIError(String message, int httpStatus, String offendingField, String messageCode, String messageCodeEnglishTemplate, List<String> templateParameters) {
this.message = message;
this.httpStatus = httpStatus;
this.offendingField = offendingField;
Expand Down Expand Up @@ -85,7 +86,7 @@ public Collection<String> getTemplateParameters() {
return templateParameters;
}

public void setTemplateParameters(Collection<String> templateParameters) {
public void setTemplateParameters(List<String> templateParameters) {
this.templateParameters = templateParameters;
}

Expand Down

0 comments on commit 84d55db

Please sign in to comment.