]> source.dussan.org Git - jgit.git/commit
Cache SimpleDateFormat in GitDateParser per locale 93/18093/3
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 5 Nov 2013 15:57:06 +0000 (16:57 +0100)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Sun, 24 Nov 2013 03:06:08 +0000 (22:06 -0500)
commit7f7dd171df7c02d2e9b95c640909cc11acda2644
tree14d3ecad508ea465e10efa4665e10e0ec0c686a3
parent8339a07e8314d6a40e15252bcc736a46c0aca0ea
Cache SimpleDateFormat in GitDateParser per locale

Otherwise switching to another locale yields wrong results when parsing
date strings in GitDateParser. Since the MockSystemReader explicitly
uses english locale the tests need to specify the locale to be used when
parsing date strings.

Bug: 420772
Change-Id: I313ef6b1e9ef3bfb43d929ce34712ebd21f2cd9c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GarbageCollectCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/GitDateParserBadlyFormattedTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/GitDateParserTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateParser.java
org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java