This is an automated email from the ASF dual-hosted git repository. jamesyong pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 3c83ab5 Refactoring 3c83ab5 is described below commit 3c83ab53b2552ff7d07dc76fc4feea86d2545a3e Author: James Yong <jamesy...@apache.org> AuthorDate: Tue Jan 12 23:25:25 2021 +0800 Refactoring --- .../org/apache/ofbiz/widget/model/MultiBlockHtmlTemplateUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/MultiBlockHtmlTemplateUtil.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/MultiBlockHtmlTemplateUtil.java index ee722d2..2352945 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/MultiBlockHtmlTemplateUtil.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/MultiBlockHtmlTemplateUtil.java @@ -37,7 +37,7 @@ public final class MultiBlockHtmlTemplateUtil { private static final String MODULE = MultiBlockHtmlTemplateUtil.class.getName(); public static final String FTL_WRITER = "WriterForFTL"; - private static final String SCRIPT_LINKS_FOR_FOOT = "ScriptLinksForFoot"; + private static final String SCRIPT_LINKS_FOR_BODY_END = "ScriptLinksForBodyEnd"; private static int maxScriptCacheSizePerUserSession = 15; private static int estimatedConcurrentUserSessions = 250; /** @@ -61,11 +61,11 @@ public final class MultiBlockHtmlTemplateUtil { * @param filePath */ public static void addScriptLinkForFoot(final HttpServletRequest request, final String filePath) { - Set<String> scriptLinks = UtilGenerics.cast(request.getAttribute(SCRIPT_LINKS_FOR_FOOT)); + Set<String> scriptLinks = UtilGenerics.cast(request.getAttribute(SCRIPT_LINKS_FOR_BODY_END)); if (scriptLinks == null) { // use of LinkedHashSet to maintain insertion order scriptLinks = new LinkedHashSet<>(); - request.setAttribute(SCRIPT_LINKS_FOR_FOOT, scriptLinks); + request.setAttribute(SCRIPT_LINKS_FOR_BODY_END, scriptLinks); } scriptLinks.add(filePath); } @@ -76,7 +76,7 @@ public final class MultiBlockHtmlTemplateUtil { * @return */ public static Set<String> getScriptLinksForFoot(HttpServletRequest request) { - Set<String> scriptLinks = UtilGenerics.cast(request.getAttribute(SCRIPT_LINKS_FOR_FOOT)); + Set<String> scriptLinks = UtilGenerics.cast(request.getAttribute(SCRIPT_LINKS_FOR_BODY_END)); return scriptLinks; }