This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a change to branch FREEMARKER-35
in repository https://gitbox.apache.org/repos/asf/freemarker.git.


    from 3d53538  [FREEMARKER-35] Made temporal format related tests more 
reliable across Java versions. Turned off standalone month bug workaround 
starting from Java 9 (as it was fixed there before the first production 
release).
     new cbdb2e4  [FREEMARKER-35] Deleted now unused classes.
     new fffb611  [FREEMARKER-35] Added date-time parsing to 
TemplateTemporalFormat interface, and to JavaTemplateTemporalFormat for now. 
Removed feature where OffsetTime formatting without showing the offset was 
possible if the timeZone had no daylight saving, as it made it too likely that 
an application that worked one day suddenly starts to fail. Also removed the 
logic where the OffsetTime format style was automatically incremented to 
include the zone (was especially confusing combined [...]
     new 691dfab  [FREEMARKER-35] Continued temporal parsing, improved ISO (and 
XS) formatters. Some code cleanup.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/main/java/freemarker/core/Configurable.java    |   3 +-
 src/main/java/freemarker/core/Environment.java     |  10 +-
 .../ISOLikeTemplateTemporalTemporalFormat.java     |  77 +++-
 .../core/ISOTemplateTemporalFormatFactory.java     | 172 +++++--
 .../core/JavaTemplateTemporalFormat.java           | 184 +++++---
 .../freemarker/core/TemplateTemporalFormat.java    |  14 +-
 .../core/ToStringTemplateTemporalFormat.java       |  70 ---
 .../ToStringTemplateTemporalFormatFactory.java     |  49 --
 .../core/XSTemplateTemporalFormatFactory.java      |  35 +-
 .../java/freemarker/core/_CoreTemporalUtils.java   | 124 -----
 src/main/java/freemarker/template/Template.java    |   2 +-
 .../java/freemarker/template/utility/DateUtil.java | 328 +-------------
 .../freemarker/template/utility/StringUtil.java    |  10 +-
 .../freemarker/template/utility/TemporalUtils.java | 499 +++++++++++++++++++++
 .../core/AbstractTemporalFormatTest.java           | 131 ++++++
 ...pochMillisDivTemplateTemporalFormatFactory.java |   5 +
 .../EpochMillisTemplateTemporalFormatFactory.java  |   5 +
 .../core/HTMLISOTemplateTemporalFormatFactory.java |   5 +
 ...ndTZSensitiveTemplateTemporalFormatFactory.java |   5 +
 ...ava => TemporalFormatWithCustomFormatTest.java} |   4 +-
 .../core/TemporalFormatWithIsoFormatTest.java      | 313 +++++++++++++
 ....java => TemporalFormatWithJavaFormatTest.java} | 203 ++++++---
 .../utility/DateUtilsPatternParsingTest.java       |  57 ++-
 .../utility/TemporalUtilsTest.java}                |  25 +-
 .../test/templatesuite/templates/temporal.ftl      |  11 +-
 25 files changed, 1550 insertions(+), 791 deletions(-)
 delete mode 100644 
src/main/java/freemarker/core/ToStringTemplateTemporalFormat.java
 delete mode 100644 
src/main/java/freemarker/core/ToStringTemplateTemporalFormatFactory.java
 delete mode 100644 src/main/java/freemarker/core/_CoreTemporalUtils.java
 create mode 100644 src/main/java/freemarker/template/utility/TemporalUtils.java
 create mode 100644 
src/test/java/freemarker/core/AbstractTemporalFormatTest.java
 rename src/test/java/freemarker/core/{TemporalFormatTest2.java => 
TemporalFormatWithCustomFormatTest.java} (93%)
 create mode 100644 
src/test/java/freemarker/core/TemporalFormatWithIsoFormatTest.java
 rename src/test/java/freemarker/core/{TemporalFormatTest.java => 
TemporalFormatWithJavaFormatTest.java} (50%)
 rename src/test/java/freemarker/{core/CoreTemporalUtilTest.java => 
template/utility/TemporalUtilsTest.java} (66%)

Reply via email to