Masaya Suzuki
edd8ad4d04
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> |
7 yıl önce | |
---|---|---|
.. | ||
CherryPickTest.java | Move base test classes to the junit bundle for reuse for Java 7 tests | 11 yıl önce |
MergeAlgorithmTest.java | Revert "Fix warnings about unchecked conversion of MergeResult" | 8 yıl önce |
MergeMessageFormatterTest.java | Repository: Introduce exactRef and findRef, deprecate getRef | 8 yıl önce |
RecursiveMergerTest.java | RecursiveMergerTest: Open TreeWalk and BufferedReader in try-with-resource | 8 yıl önce |
ResolveMergerTest.java | Use FS#lastModified instead of File#lastModified | 7 yıl önce |
SimpleMergeTest.java | Revert "CommitBuilder should check for duplicate parents" | 9 yıl önce |
SquashMessageFormatterTest.java | SquashMessageFormatterTest: Open git in try-with-resource | 8 yıl önce |