ProtoTimestampGetSecondsGetNano
getNanos() only accesses the underlying nanosecond-adjustment of the instant.

Severity
WARNING

The problem

If you call timestamp.getNanos(), you must also call timestamp.getSeconds() in ‘nearby’ code. If you are trying to convert this timestamp to nanoseconds, you probably meant to use Timestamps.toNanos(timestamp) instead.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("ProtoTimestampGetSecondsGetNano") to the enclosing element.