return messages;
}
- public boolean isEmpty() {
- return messages.isEmpty();
- }
-
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
checkThresholds(warningThreshold, errorThreshold, errors);
checkPeriod(metric, period, errors);
checkRatingMetric(metric, warningThreshold, errorThreshold, period, errors);
- if (!errors.isEmpty()) {
+ if (!errors.messages().isEmpty()) {
throw BadRequestException.create(errors);
}
}
} else {
checkQualityGateDoesNotAlreadyExist(qGateId, name, errors);
}
- if (!errors.isEmpty()) {
+ if (!errors.messages().isEmpty()) {
throw BadRequestException.create(errors);
}
}
} else {
checkQgateNotAlreadyExists(updatingQgateId, name, errors);
}
- if (!errors.isEmpty()) {
+ if (!errors.messages().isEmpty()) {
throw BadRequestException.create(errors);
}
}
}
}
- if (!errors.isEmpty()) {
+ if (!errors.messages().isEmpty()) {
throw BadRequestException.create(errors);
}
}