ItEr33S08ValidacionEProbasFuncionaisItEr32S09: Some forgotten fixes
This commit is contained in:
parent
c68e1463c0
commit
65a2993adc
5 changed files with 9 additions and 7 deletions
|
|
@ -110,7 +110,7 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
|
||||
String[] requestData = request.getData();
|
||||
|
||||
if ((requestData != null) && (requestData.length != 1)) {
|
||||
if (requestData == null || requestData.length != 1) {
|
||||
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
|
||||
new Object[] { Objects.toString(requestData), this });
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class ResourceLoadComponent extends XulElement {
|
|||
|
||||
private final LoadTimeLine loadLine;
|
||||
private final TimeTracker timeTracker;
|
||||
private IZoomLevelChangedListener zoomChangedListener;
|
||||
private transient IZoomLevelChangedListener zoomChangedListener;
|
||||
|
||||
private ResourceLoadComponent(final TimeTracker timeTracker,
|
||||
final LoadTimeLine loadLine) {
|
||||
|
|
|
|||
|
|
@ -163,7 +163,8 @@ public class CriterionSatisfaction extends BaseEntity {
|
|||
}
|
||||
|
||||
public void finish(Date finish) {
|
||||
Validate.isTrue(finish == null || getStartDate() == null
|
||||
Validate.notNull(finish);
|
||||
Validate.isTrue(getStartDate() == null
|
||||
|| getStartDate().equals(finish) || getStartDate().before(finish));
|
||||
Validate.isTrue(finishDate == null || isNewObject() ||
|
||||
getEndDate().equals(finish) || getEndDate().before(finish));
|
||||
|
|
|
|||
|
|
@ -295,8 +295,9 @@ public abstract class LoadChartFiller implements ILoadChartFiller {
|
|||
result.put(key, result.get(key) + hours);
|
||||
}
|
||||
}
|
||||
for (LocalDate day : result.keySet()) {
|
||||
result.put(day, result.get(day) / 7);
|
||||
for (Entry<LocalDate, Integer> entry : result.entrySet()) {
|
||||
LocalDate day = entry.getKey();
|
||||
result.put(entry.getKey(), result.get(day) / 7);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,11 +99,11 @@ public class CriterionSatisfactionDTO implements INewObject {
|
|||
}
|
||||
|
||||
public Date getStartDate() {
|
||||
return new Date(startDate.getTime());
|
||||
return startDate != null ? new Date(startDate.getTime()) : null;
|
||||
}
|
||||
|
||||
public Date getEndDate() {
|
||||
return new Date(endDate.getTime());
|
||||
return endDate != null ? new Date(endDate.getTime()) : null;
|
||||
}
|
||||
|
||||
public CriterionSatisfaction getCriterionSatisfaction() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue