diff options
author | Masaya Suzuki <masayasuzuki@google.com> | 2016-08-21 15:27:30 -0700 |
---|---|---|
committer | Andrey Loskutov <loskutov@gmx.de> | 2016-08-24 09:07:08 +0200 |
commit | edd8ad4d04897830f08b6793a9493c70c0e9b87a (patch) | |
tree | 4675dd5c84a81b9b4289850a1a4c908d90716204 /tools/maven-central | |
parent | da9eef85e7fff1c1c64c4302b897d20aff24b448 (diff) | |
download | jgit-edd8ad4d04897830f08b6793a9493c70c0e9b87a.tar.gz jgit-edd8ad4d04897830f08b6793a9493c70c0e9b87a.zip |
Use FS#lastModified instead of File#lastModified
This fixes the tests failed in JDK8.
FS uses java.nio API to get file attributes. The timestamps obtained
from that API are more precise than the ones from
java.io.File#lastModified() since Java8.
This difference accidentally makes JGit detect newly added files as
smudged. Use the precised timestamp to avoid this false positive.
Bug: 500058
Change-Id: I9e587583c85cb6efa7562ad6c5f26577869a2e7c
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'tools/maven-central')
0 files changed, 0 insertions, 0 deletions