Skip to content

Commit

Permalink
update the Locale.US code comment
Browse files Browse the repository at this point in the history
Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
  • Loading branch information
sendaoYan committed Mar 9, 2024
1 parent 6827b2b commit 1475149
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/jdk/java/util/Properties/PropertiesStoreTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
public class PropertiesStoreTest {

private static final String DATE_FORMAT_PATTERN = "EEE MMM dd HH:mm:ss zzz uuuu";
// use Locale.US, since when the date comment was written by Properties.store(...),
// it internally calls the Date.toString() which uses Locale.US for time zone names
private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern(DATE_FORMAT_PATTERN, Locale.US);
private static final Locale PREV_LOCALE = Locale.getDefault();

Expand Down

0 comments on commit 1475149

Please sign in to comment.