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

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


    from 02fa5ed  Version number typo fix
     new abaed15  Some cleanup related to local lambdas, ?filter and ?map. 
Added optimizations to ?size operating on the result of ?filter/?map.
     new e7d91e6  Made ?size smarter when its result is compared to an integer 
literal. Specifically, for ?filter-ed sequences (or for the result of similar 
future Stream-API-like built-ins) it won't count more elements then it's 
necessary to tell the comparison result. Also, for a TemplateCollectionModelEx, 
it calls isEmpty() instead of size(), if for the comparison result we only have 
to know if we have more than 0 elements.
     new 700e87e  (Added some version history entry for ?filter/?map and local 
lambdas... documentation is still missing)

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/BuiltIn.java         |  11 +-
 .../freemarker/core/BuiltInsForMultipleTypes.java  |  56 ++++-
 .../java/freemarker/core/BuiltInsForSequences.java | 101 +++++----
 .../java/freemarker/core/ComparisonExpression.java |  16 ++
 src/main/java/freemarker/core/Environment.java     |   2 -
 src/main/java/freemarker/core/EvalUtil.java        |  12 ++
 src/main/java/freemarker/core/IteratorBlock.java   |   8 +-
 ...ator.java => LazilyGeneratedSequenceModel.java} |  27 +--
 ...va => LazyCollectionTemplateModelIterator.java} |  33 +--
 ...enceIterator.java => LazySequenceIterator.java} |  19 +-
 src/main/java/freemarker/core/MiscUtil.java        |   7 +
 ...a => SameSizeLazilyGeneratedSequenceModel.java} |  36 ++--
 ...> SameSizeSeqLazilyGeneratedSequenceModel.java} |  35 +--
 src/manual/en_US/book.xml                          |  34 +++
 ...ilyGeneratedSeqTargetSupportInBuiltinsTest.java | 237 +++++++++++++++++++++
 .../core/ListWithStreamLikeBuiltinsTest.java       |   2 +-
 16 files changed, 511 insertions(+), 125 deletions(-)
 copy src/main/java/freemarker/core/{SequenceIterator.java => 
LazilyGeneratedSequenceModel.java} (61%)
 copy src/main/java/freemarker/core/{SingleIterationCollectionModel.java => 
LazyCollectionTemplateModelIterator.java} (58%)
 copy src/main/java/freemarker/core/{SequenceIterator.java => 
LazySequenceIterator.java} (70%)
 copy src/main/java/freemarker/core/{SingleIterationCollectionModel.java => 
SameSizeLazilyGeneratedSequenceModel.java} (52%)
 copy src/main/java/freemarker/core/{SingleIterationCollectionModel.java => 
SameSizeSeqLazilyGeneratedSequenceModel.java} (52%)
 create mode 100644 
src/test/java/freemarker/core/LazilyGeneratedSeqTargetSupportInBuiltinsTest.java

Reply via email to