private @Nullable String changedVia;
private boolean allowedForFirstLine;
private boolean allowed;
- private List<Object> errorCodes = new ArrayList<>();
+ private @Nullable List<Object> errorCodes = new ArrayList<>();
private @Nullable String typename;
public @Nullable String getType() {
return allowed;
}
- public List<Object> getErrorCodes() {
+ public @Nullable List<Object> getErrorCodes() {
return errorCodes;
}
result = prime * result + ((localChangedVia == null) ? 0 : localChangedVia.hashCode());
String localDate = date;
result = prime * result + ((localDate == null) ? 0 : localDate.hashCode());
- result = prime * result + errorCodes.hashCode();
+ result = prime * result + ((errorCodes == null) ? 0 : errorCodes.hashCode());
String localName = name;
result = prime * result + ((localName == null) ? 0 : localName.hashCode());
String localStatusType = statusType;
} else if (!localdate.equals(other.date)) {
return false;
}
- if (!errorCodes.equals(other.errorCodes)) {
+ if (this.errorCodes == null) {
+ if (other.errorCodes != null) {
+ return false;
+ }
+ } else if (this.errorCodes != null && !this.errorCodes.equals(other.errorCodes)) {
return false;
}
String localName = name;