Toggle navigation
Home
java.time.ZonedDateTime to java.time.Instant
No. of Instances - 71
No. of Commits - 3
No. of Projects - {'AxonFramework', 'james-project', '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))