Use a SQL date object for LocalDates (#842)

* Use a SQL date object for LocalDates

* Clean up comment
This commit is contained in:
gbrodman 2020-10-20 15:44:23 -04:00 committed by GitHub
parent 4d5d9700b8
commit 0b73e9032c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 3325 additions and 3278 deletions

View file

@ -92,15 +92,13 @@ public class Spec11ThreatMatchDaoTest extends EntityTestCase {
}
private Spec11ThreatMatch createThreatMatch(String domainName, LocalDate date) {
Spec11ThreatMatch threatMatch =
new Spec11ThreatMatch()
.asBuilder()
.setThreatTypes(ImmutableSet.of(ThreatType.MALWARE))
.setCheckDate(date)
.setDomainName(domainName)
.setRegistrarId("Example Registrar")
.setDomainRepoId("1-COM")
.build();
return threatMatch;
return new Spec11ThreatMatch()
.asBuilder()
.setThreatTypes(ImmutableSet.of(ThreatType.MALWARE))
.setCheckDate(date)
.setDomainName(domainName)
.setRegistrarId("Example Registrar")
.setDomainRepoId("1-COM")
.build();
}
}