diff options
author | Ivan Frade <ifrade@google.com> | 2024-11-08 08:49:09 -0800 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2024-11-08 15:06:16 -0800 |
commit | 9ea537d5c44876c12d154331c94a7ba14eaa64f8 (patch) | |
tree | ef868efd39d528bba3ea88e1f2fe99fd04b99f84 /tools/BUILD | |
parent | a903ab5fa3defdef06b4eba316ef2436533416fb (diff) | |
download | jgit-9ea537d5c44876c12d154331c94a7ba14eaa64f8.tar.gz jgit-9ea537d5c44876c12d154331c94a7ba14eaa64f8.zip |
DfsGarbageCollector: #setReflogExpire with Instant instead of Date
The Date API is full of major design flaws and pitfalls and should be
avoided at all costs. Prefer the java.time APIs, specifically,
java.time.Instant (for physical time) and java.time.LocalDate[Time]
(for civil time). [1]
Replace the Date with Instant in the
DfsGarbageCollector#setReflogExpire method.
[1] https://errorprone.info/bugpattern/JavaUtilDate
Change-Id: Ie98e426e63621e8bef96c31bca56aec0c8eef5a6
Diffstat (limited to 'tools/BUILD')
0 files changed, 0 insertions, 0 deletions