}
public void setUuid(String s) {
- checkArgument(s.length() <= 40, "Value is too long for column CE_QUEUE.UUID: %s", s);
+ checkArgument(s.length() <= 40, "Value of UUID is too long: %s", s);
this.uuid = s;
}
}
public void setComponentUuid(@Nullable String s) {
- checkArgument(s == null || s.length() <= 40, "Value is too long for column CE_QUEUE.COMPONENT_UUID: %s", s);
+ checkArgument(s == null || s.length() <= 40, "Value of component UUID is too long: %s", s);
this.componentUuid = s;
}
}
public void setTaskType(String s) {
- checkArgument(s.length() <= 15, "Value is too long for column CE_QUEUE.TASK_TYPE: %s", s);
+ checkArgument(s.length() <= 15, "Value of task type is too long: %s", s);
this.taskType = s;
}
}
public void setSubmitterLogin(@Nullable String s) {
- checkArgument(s == null || s.length() <= 255, "Value is too long for column CE_QUEUE.SUBMITTER_LOGIN: %s", s);
+ checkArgument(s == null || s.length() <= 255, "Value of submitter login is too long: %s", s);
this.submitterLogin = s;
}
}
@Override
- public boolean equals(Object o) {
+ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
}
public IssueDto setActionPlanKey(@Nullable String s) {
+ checkArgument(s == null || s.length() <= 50, "Value is too long for issue action plan: %s", s);
this.actionPlanKey = s;
return this;
}
return severity;
}
- public IssueDto setSeverity(@Nullable String severity) {
- this.severity = severity;
+ public IssueDto setSeverity(@Nullable String s) {
+ checkArgument(s == null || s.length() <= 10, "Value is too long for issue severity: %s", s);
+ this.severity = s;
return this;
}
}
public IssueDto setMessage(@Nullable String s) {
- checkArgument(s == null || s.length() <= 4000, "Value is too long for column ISSUES.MESSAGE: %s", s);
+ checkArgument(s == null || s.length() <= 4000, "Value is too long for issue message: %s", s);
this.message = s;
return this;
}
return line;
}
- public IssueDto setLine(@Nullable Integer line) {
- this.line = line;
+ public IssueDto setLine(@Nullable Integer i) {
+ checkArgument(i == null || i >= 0, "Value of issue line must be positive: %d", i);
+ this.line = i;
return this;
}
}
public IssueDto setEffortToFix(@Nullable Double d) {
+ checkArgument(d == null || d >= 0, "Value of issue effort to fix must be positive: %d", d);
this.effortToFix = d;
return this;
}
return debt;
}
- public IssueDto setDebt(@Nullable Long debt) {
- this.debt = debt;
+ public IssueDto setDebt(@Nullable Long l) {
+ checkArgument(l == null || l >= 0, "Value of issue debt must be positive: %d", l);
+ this.debt = l;
return this;
}
return status;
}
- public IssueDto setStatus(@Nullable String status) {
- this.status = status;
+ public IssueDto setStatus(@Nullable String s) {
+ checkArgument(s == null || s.length() <= 20, "Value is too long for issue status: %s", s);
+ this.status = s;
return this;
}
}
public IssueDto setResolution(@Nullable String s) {
+ checkArgument(s == null || s.length() <= 20, "Value is too long for issue resolution: %s", s);
this.resolution = s;
return this;
}
return checksum;
}
- public IssueDto setChecksum(@Nullable String checksum) {
- this.checksum = checksum;
+ public IssueDto setChecksum(@Nullable String s) {
+ checkArgument(s == null || s.length() <= 1000, "Value is too long for issue checksum: %s", s);
+ this.checksum = s;
return this;
}
}
public IssueDto setReporter(@Nullable String s) {
- checkArgument(s == null || s.length() <= 255, "Value is too long for column ISSUES.REPORTER: %s", s);
+ checkArgument(s == null || s.length() <= 255, "Value is too long for issue reporter: %s", s);
this.reporter = s;
return this;
}
}
public IssueDto setAssignee(@Nullable String s) {
- checkArgument(s == null || s.length() <= 255, "Value is too long for column ISSUES.ASSIGNEE: %s", s);
+ checkArgument(s == null || s.length() <= 255, "Value is too long for issue assignee: %s", s);
this.assignee = s;
return this;
}
}
public IssueDto setAuthorLogin(@Nullable String s) {
- checkArgument(s == null || s.length() <= 255, "Value is too long for column ISSUES.AUTHOR_LOGIN: %s", s);
+ checkArgument(s == null || s.length() <= 255, "Value is too long for issue author login: %s", s);
this.authorLogin = s;
return this;
}
}
public IssueDto setIssueAttributes(@Nullable String s) {
- checkArgument(s == null || s.length() <= 4000, "Value is too long for column ISSUES.ATTRIBUTES: %s", s);
+ checkArgument(s == null || s.length() <= 4000, "Value is too long for issue attributes: %s", s);
this.issueAttributes = s;
return this;
}