@Test public void convertingToInstant() { LegacyTimestamp timestamp = create(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_456_789)); assertThat(timestamp.toInstant()).isEqualTo(asInstant(LocalDate.of(1985, 6, 3), LocalTime.of(12, 30, 50, 123_000_000))); }
@IgnoreJRERequirement @Override public Instant toInstant() { return date.toInstant(); }
LegacyTimestamp implements Timestamp { @IgnoreJRERequirement @Override public Instant toInstant() { return date.toInstant(); } }
LegacyTimestamp implements Timestamp { @IgnoreJRERequirement @Override public Instant toInstant() { return date.toInstant(); } LegacyTimestamp();  LegacyTimestamp(final long milliseconds); }
LegacyTimestamp implements Timestamp { @IgnoreJRERequirement @Override public Instant toInstant() { return date.toInstant(); } LegacyTimestamp();  LegacyTimestamp(final long milliseconds); @Override Date toDate(); @IgnoreJRERequirement @Override Instant toInstant(); @Override java.sql.Timestamp toSqlTimestamp(); @Override long calcDifferenceInNanoseconds(final Timestamp other); }
LegacyTimestamp implements Timestamp { @IgnoreJRERequirement @Override public Instant toInstant() { return date.toInstant(); } LegacyTimestamp();  LegacyTimestamp(final long milliseconds); @Override Date toDate(); @IgnoreJRERequirement @Override Instant toInstant(); @Override java.sql.Timestamp toSqlTimestamp(); @Override long calcDifferenceInNanoseconds(final Timestamp other);  }