Skip to content

Commit

Permalink
#835 Remove unnecessary constant from FBTimeField
Browse files Browse the repository at this point in the history
(cherry picked from commit 4036bbd)
  • Loading branch information
mrotteveel committed Mar 5, 2025
1 parent 74343cb commit cadd32d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/org/firebirdsql/jdbc/field/FBTimeField.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
@SuppressWarnings("RedundantThrows")
final class FBTimeField extends AbstractWithoutTimeZoneField {

private static final LocalDate LOCAL_DATE_EPOCH = LocalDate.of(1970, 1, 1);

@NullMarked
FBTimeField(FieldDescriptor fieldDescriptor, FieldDataProvider dataProvider, int requiredType) throws SQLException {
super(fieldDescriptor, dataProvider, requiredType);
Expand All @@ -61,7 +59,7 @@ LocalTime getLocalTime() throws SQLException {
@Override
LocalDateTime getLocalDateTime() throws SQLException {
LocalTime localTime = getLocalTime();
return localTime != null ? localTime.atDate(LOCAL_DATE_EPOCH) : null;
return localTime != null ? localTime.atDate(LocalDate.EPOCH) : null;
}

//--- setXXX methods
Expand Down

0 comments on commit cadd32d

Please sign in to comment.