This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git
The following commit(s) were added to refs/heads/2.3-gae by this push:
new 1e16a4f Adjustments to recently merged
BeansWrapper.clearClassIntrospecitonCache -> clearClassIntrospectionCache typo
fix
1e16a4f is described below
commit 1e16a4feb4361c64a12d9c61322ba1ba086097f1
Author: ddekany <[email protected]>
AuthorDate: Sat Apr 6 12:56:15 2019 +0200
Adjustments to recently merged BeansWrapper.clearClassIntrospecitonCache ->
clearClassIntrospectionCache typo fix
---
src/main/java/freemarker/ext/beans/BeansWrapper.java | 7 ++++---
src/manual/en_US/book.xml | 6 ++++++
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/main/java/freemarker/ext/beans/BeansWrapper.java
b/src/main/java/freemarker/ext/beans/BeansWrapper.java
index 5c645b4..7414585 100644
--- a/src/main/java/freemarker/ext/beans/BeansWrapper.java
+++ b/src/main/java/freemarker/ext/beans/BeansWrapper.java
@@ -1617,8 +1617,7 @@ public class BeansWrapper implements RichObjectWrapper,
WriteProtectable {
}
/**
- * @deprecated Use {@link #clearClassIntrospectionCache()};
- * Removes all class introspection data from the cache.
+ * <p>Removes all class introspection data from the cache.
*
* <p>Use this if you want to free up memory on the expense of recreating
* the cache entries for the classes that will be used later in templates.
@@ -1626,6 +1625,8 @@ public class BeansWrapper implements RichObjectWrapper,
WriteProtectable {
* @throws IllegalStateException if {@link
#isClassIntrospectionCacheRestricted()} is {@code true}.
*
* @since 2.3.20
+ *
+ * @deprecated There's a typo in this method name, so use {@link
#clearClassIntrospectionCache()} instead.
*/
@Deprecated
public void clearClassIntrospecitonCache() {
@@ -1640,7 +1641,7 @@ public class BeansWrapper implements RichObjectWrapper,
WriteProtectable {
*
* @throws IllegalStateException if {@link
#isClassIntrospectionCacheRestricted()} is {@code true}.
*
- * @since 2.3.29
+ * @since 2.3.29 (in earlier versions use {@link
#clearClassIntrospecitonCache()})
*/
public void clearClassIntrospectionCache() {
classIntrospector.clearCache();
diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml
index 6fff000..3285d9b 100644
--- a/src/manual/en_US/book.xml
+++ b/src/manual/en_US/book.xml
@@ -28032,6 +28032,12 @@ TemplateModel x = env.getVariable("x"); // get
variable x</programlisting>
<literal>markup(HTMLOutputFormat(),
"<p>Example</p>")</literal>.</para>
</listitem>
+
+ <listitem>
+
<para><literal>BeansWrapper.clearClassIntrospecitonCache</literal>
+ was deprecated as there's a typo in the method name; use
+ <literal>clearClassIntrospectionCache</literal> instead.</para>
+ </listitem>
</itemizedlist>
</section>
</section>