Toggle navigation
Home
java.time.ZonedDateTime to java.time.Instant
No. of Instances - 27
No. of Commits - 1
No. of Projects - {'jhipster-sample-app'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Add or Remove Method invocation
Optional.ofNullable(mimeMessage.getDate()).map(this::dateToZonedDate)
to
Optional.ofNullable(mimeMessage.getDate()).map(Date::toInstant)
message.getInternalDateAsZonedDateTime()
to
message.getInternalDate()
sameInstant(DEFAULT_DATE)
to
DEFAULT_DATE
sameInstant(DEFAULT_DATE)
to
DEFAULT_DATE
now.minusDays(3)
to
ChronoUnit.DAYS
ChronoUnit.DAYS
to
now.minus(3,ChronoUnit.DAYS)
TriggerBuilder.newTrigger().forJob(jobKey).startAt(Date.from(triggerDateTime.toInstant()))
to
TriggerBuilder.newTrigger().forJob(jobKey).startAt(Date.from(triggerDateTime))