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