Skip to content

Commit 4036bbd

Browse files
committed
#835 Remove unnecessary constant from FBTimeField
1 parent 4744789 commit 4036bbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/org/firebirdsql/jdbc/field/FBTimeField.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
@SuppressWarnings("RedundantThrows")
2727
final class FBTimeField extends AbstractWithoutTimeZoneField {
2828

29-
private static final LocalDate LOCAL_DATE_EPOCH = LocalDate.of(1970, 1, 1);
30-
3129
@NullMarked
3230
FBTimeField(FieldDescriptor fieldDescriptor, FieldDataProvider dataProvider, int requiredType) throws SQLException {
3331
super(fieldDescriptor, dataProvider, requiredType);
@@ -51,7 +49,7 @@ LocalTime getLocalTime() throws SQLException {
5149
@Override
5250
LocalDateTime getLocalDateTime() throws SQLException {
5351
LocalTime localTime = getLocalTime();
54-
return localTime != null ? localTime.atDate(LOCAL_DATE_EPOCH) : null;
52+
return localTime != null ? localTime.atDate(LocalDate.EPOCH) : null;
5553
}
5654

5755
//--- setXXX methods

0 commit comments

Comments
 (0)