Joda-Time’s DateTime.toDateTime(), Duration.toDuration(), Instant.toInstant(), Interval.toInterval(), and Period.toPeriod() are always unnecessary, since they simply ‘return this’. There is no reason to ever call them.
Suppress false positives by adding the suppression annotation @SuppressWarnings("JodaToSelf")
to the enclosing element.