freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [1/3] incubator-freemarker git commit: (Outdated javadoc)
Date Sun, 19 Mar 2017 20:04:47 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/3 10b768d48 -> e365f11bd


(Outdated javadoc)


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

Branch: refs/heads/3
Commit: 3de10f71b5260990176435b4ea8af91395a61be3
Parents: 10b768d
Author: ddekany <ddekany@apache.org>
Authored: Sat Mar 18 17:00:19 2017 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Sat Mar 18 17:00:19 2017 +0100

----------------------------------------------------------------------
 .../core/model/impl/DefaultObjectWrapper.java          | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/3de10f71/src/main/java/org/apache/freemarker/core/model/impl/DefaultObjectWrapper.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/freemarker/core/model/impl/DefaultObjectWrapper.java
b/src/main/java/org/apache/freemarker/core/model/impl/DefaultObjectWrapper.java
index 76ce9ee..5bc97a1 100644
--- a/src/main/java/org/apache/freemarker/core/model/impl/DefaultObjectWrapper.java
+++ b/src/main/java/org/apache/freemarker/core/model/impl/DefaultObjectWrapper.java
@@ -1185,20 +1185,15 @@ public class DefaultObjectWrapper implements RichObjectWrapper {
      *
      * <p>The builder meant to be used as a drop-away object (not stored in a field),
like in this example:
      * <pre>
-     *    DefaultObjectWrapper dow = new Builder(Configuration.VERSION_2_3_21).build();
+     *    DefaultObjectWrapper dow = new Builder(Configuration.VERSION_3_0_0).build();
      * </pre>
      *
      * <p>Or, a more complex example:</p>
      * <pre>
      *    // Create the builder:
-     *    Builder builder = new Builder(Configuration.VERSION_2_3_21);
-     *    // Set desired DefaultObjectWrapper configuration properties:
-     *    builder.setUseModelCache(true);
-     *    builder.setExposeFields(true);
-     *
-     *    // Get the singleton:
-     *    DefaultObjectWrapper dow = builder.build();
-     *    // You don't need the builder anymore.
+     *    DefaultObjectWrapper dow = new Builder(Configuration.VERSION_3_0_0)
+     *            .exposeFields(true)
+     *            .build();
      * </pre>
      *
      * <p>Despite that builders aren't meant to be used as long-lived objects (singletons),
the builder is thread-safe after


Mime
View raw message