62 lines
2.1 KiB
Diff
62 lines
2.1 KiB
Diff
From e5732c989267457c65eb8ef585520fdda4a8e0bd Mon Sep 17 00:00:00 2001
|
|
From: lei_ju <lj3074194431@163.com>
|
|
Date: Mon, 24 Aug 2020 15:15:48 +0800
|
|
Subject: [PATCH] Fix build failure because of freemarker
|
|
|
|
|
|
diff --git a/src/freemarker/core/ActionCodeBI.java b/src/freemarker/core/ActionCodeBI.java
|
|
index 4cbc9f7..2808c59 100644
|
|
--- a/src/freemarker/core/ActionCodeBI.java
|
|
+++ b/src/freemarker/core/ActionCodeBI.java
|
|
@@ -45,7 +45,7 @@ public class ActionCodeBI extends BuiltIn
|
|
{
|
|
public static void init ()
|
|
{
|
|
- BuiltIn.builtins.put ("actioncode", new ActionCodeBI ());
|
|
+ BuiltIn.BUILT_INS_BY_NAME.put ("actioncode", new ActionCodeBI ());
|
|
}
|
|
|
|
TemplateModel _eval (Environment env) throws TemplateException
|
|
diff --git a/src/freemarker/core/HexBI.java b/src/freemarker/core/HexBI.java
|
|
index cd04fc3..840c95a 100644
|
|
--- a/src/freemarker/core/HexBI.java
|
|
+++ b/src/freemarker/core/HexBI.java
|
|
@@ -41,7 +41,7 @@ public class HexBI extends BuiltIn
|
|
{
|
|
public static void init ()
|
|
{
|
|
- BuiltIn.builtins.put ("hex", new HexBI ());
|
|
+ BuiltIn.BUILT_INS_BY_NAME.put ("hex", new HexBI ());
|
|
}
|
|
|
|
TemplateModel _eval (Environment env) throws TemplateException
|
|
diff --git a/src/freemarker/core/JavaStringBI.java b/src/freemarker/core/JavaStringBI.java
|
|
index 4bac9df..088efb6 100644
|
|
--- a/src/freemarker/core/JavaStringBI.java
|
|
+++ b/src/freemarker/core/JavaStringBI.java
|
|
@@ -47,7 +47,7 @@ public class JavaStringBI extends BuiltIn
|
|
|
|
public static void init ()
|
|
{
|
|
- BuiltIn.builtins.put ("javastring", new JavaStringBI ());
|
|
+ BuiltIn.BUILT_INS_BY_NAME.put ("javastring", new JavaStringBI ());
|
|
}
|
|
|
|
TemplateModel _eval (Environment env) throws TemplateException
|
|
diff --git a/src/freemarker/core/TypeBI.java b/src/freemarker/core/TypeBI.java
|
|
index 9346f6d..a8a4a30 100644
|
|
--- a/src/freemarker/core/TypeBI.java
|
|
+++ b/src/freemarker/core/TypeBI.java
|
|
@@ -48,7 +48,7 @@ public class TypeBI extends BuiltIn
|
|
{
|
|
public static void init ()
|
|
{
|
|
- BuiltIn.builtins.put ("type", new TypeBI ());
|
|
+ BuiltIn.BUILT_INS_BY_NAME.put ("type", new TypeBI ());
|
|
}
|
|
|
|
TemplateModel _eval (Environment env) throws TemplateException
|
|
--
|
|
2.23.0
|
|
|