Skip to content

Commit 1d09aa6

Browse files
committed
clean up after review
1 parent 8d7ab41 commit 1d09aa6

File tree

2 files changed

+15
-39
lines changed

2 files changed

+15
-39
lines changed

sormas-api/src/main/java/de/symeda/sormas/api/disease/DiseaseBurdenDto.java

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public class DiseaseBurdenDto implements Serializable {
9393
private String otherCount;
9494

9595

96-
private Date to;
97-
private Date from;
96+
private Date toDate;
97+
private Date fromDate;
9898

9999
public DiseaseBurdenDto(
100100
RegionDto regionDto,
@@ -152,8 +152,8 @@ public DiseaseBurdenDto(
152152
this.caseDeathCount = caseDeathCount;
153153
this.lastReportedDistrictName = lastReportedDistrictName;
154154
this.outbreakDistrict = outbreakDistrict;
155-
this.from= from;
156-
this.to=to;
155+
this.fromDate = from;
156+
this.toDate =to;
157157
}
158158

159159
public DiseaseBurdenDto(
@@ -366,94 +366,70 @@ public void setTotal(String total) {
366366
this.total = total;
367367
}
368368

369-
370-
public Date getTo() {
371-
return to;
369+
public Date getToDate() {
370+
return toDate;
372371
}
373372

374-
375-
public void setTo(Date to) {
376-
this.to = to;
373+
public void setToDate(Date toDate) {
374+
this.toDate = toDate;
377375
}
378376

379-
380-
public Date getFrom() {
381-
return from;
377+
public Date getFromDate() {
378+
return fromDate;
382379
}
383380

384-
385-
public void setFrom(Date from) {
386-
this.from = from;
381+
public void setFromDate(Date fromDate) {
382+
this.fromDate = fromDate;
387383
}
388384

389-
390-
391385
public String getTotalCount() {
392386
return totalCount;
393387
}
394388

395-
396389
public void setTotalCount(String totalCount) {
397390
this.totalCount = totalCount;
398391
}
399392

400-
401393
public String getDeathsCount() {
402394
return deathsCount;
403395
}
404396

405-
406397
public void setDeathsCount(String deathsCount) {
407398
this.deathsCount = deathsCount;
408399
}
409400

410-
411401
public String getRecoveredCount() {
412402
return recoveredCount;
413403
}
414404

415-
416405
public void setRecoveredCount(String recoveredCount) {
417406
this.recoveredCount = recoveredCount;
418407
}
419408

420-
421-
422-
423-
424409
public String getActiveCount() {
425410
return activeCount;
426411
}
427412

428-
429413
public void setActiveCount(String activeCount) {
430414
this.activeCount = activeCount;
431415
}
432416

433-
434417
public String getOther() {
435418
return other;
436419
}
437420

438-
439421
public void setOther(String other) {
440422
this.other = other;
441423
}
442424

443-
444-
445-
446-
447425
public String getOtherCount() {
448426
return otherCount;
449427
}
450428

451-
452429
public void setOtherCount(String otherCount) {
453430
this.otherCount = otherCount;
454431
}
455432

456-
457433
@Override
458434
public String toString() {
459435
return "DiseaseBurdenDto [disease=" + disease + ", total=" + total + ", caseCount=" + caseCount
@@ -462,6 +438,6 @@ public String toString() {
462438
+ lastReportedDistrictName + ", caseClassification=" + caseClassification + ", cfr=" + cfr
463439
+ ", lastReportedDistrict=" + lastReportedDistrict + ", outbreakDistrict=" + outbreakDistrict
464440
+ ", deaths=" + deaths + ", region=" + region + ", recovered=" + recovered + ", activeCases="
465-
+ activeCases + ", to=" + to + ", from=" + from + "]";
441+
+ activeCases + ", toDate=" + toDate + ", fromDate=" + fromDate + "]";
466442
}
467443
}

sormas-backend/src/test/java/de/symeda/sormas/backend/disease/DiseaseFacadeEjbTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public void testGetDiseaseForDashboard() {
6464
assertEquals(0L, result.getCaseDeathCount());
6565
assertEquals("", result.getLastReportedDistrictName());
6666
assertEquals("", result.getOutbreakDistrict());
67-
assertEquals(fromDate, result.getFrom());
68-
assertEquals(toDate, result.getTo());
67+
assertEquals(fromDate, result.getFromDate());
68+
assertEquals(toDate, result.getToDate());
6969
}
7070

7171
@Test

0 commit comments

Comments
 (0)