freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [2/2] incubator-freemarker git commit: GeneralPurposeNothing implements TemplateHashModelEx2 (ported from 2.3-gae)
Date Tue, 08 Aug 2017 12:25:35 GMT
GeneralPurposeNothing implements TemplateHashModelEx2 (ported from 2.3-gae)


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/836de265
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/836de265
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/836de265

Branch: refs/heads/3
Commit: 836de2657cee8b12509af24e79d9bdf7ed1c4fd7
Parents: ddb9c8a
Author: ddekany <ddekany@apache.org>
Authored: Tue Aug 8 14:25:12 2017 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Tue Aug 8 14:25:12 2017 +0200

----------------------------------------------------------------------
 .../apache/freemarker/core/model/GeneralPurposeNothing.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/836de265/freemarker-core/src/main/java/org/apache/freemarker/core/model/GeneralPurposeNothing.java
----------------------------------------------------------------------
diff --git a/freemarker-core/src/main/java/org/apache/freemarker/core/model/GeneralPurposeNothing.java
b/freemarker-core/src/main/java/org/apache/freemarker/core/model/GeneralPurposeNothing.java
index b19b912..ffc2ad2 100644
--- a/freemarker-core/src/main/java/org/apache/freemarker/core/model/GeneralPurposeNothing.java
+++ b/freemarker-core/src/main/java/org/apache/freemarker/core/model/GeneralPurposeNothing.java
@@ -30,7 +30,7 @@ import org.apache.freemarker.core.TemplateException;
  */
 
 final class GeneralPurposeNothing
-implements TemplateBooleanModel, TemplateScalarModel, TemplateSequenceModel, TemplateHashModelEx,
+implements TemplateBooleanModel, TemplateScalarModel, TemplateSequenceModel, TemplateHashModelEx2,
         TemplateFunctionModel {
 
     public static final TemplateModel INSTANCE = new GeneralPurposeNothing();
@@ -90,4 +90,9 @@ implements TemplateBooleanModel, TemplateScalarModel, TemplateSequenceModel,
Tem
         return Constants.EMPTY_COLLECTION;
     }
 
+    @Override
+    public KeyValuePairIterator keyValuePairIterator() throws TemplateModelException {
+        return Constants.EMPTY_KEY_VALUE_PAIR_ITERATOR;
+    }
+
 }


Mime
View raw message