This is an automated email from the ASF dual-hosted git repository.

olli pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-freemarker.git

commit b824dfd12645f2180d1ca5a8cc61640c90fd5cbf
Author: Oliver Lietz <[email protected]>
AuthorDate: Thu Nov 3 20:27:54 2022 +0100

    [checkstyle] (coding) AvoidInlineConditionals
---
 .../apache/sling/scripting/freemarker/internal/IncludeDirective.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/scripting/freemarker/internal/IncludeDirective.java
 
b/src/main/java/org/apache/sling/scripting/freemarker/internal/IncludeDirective.java
index 99b9e65..76d5594 100644
--- 
a/src/main/java/org/apache/sling/scripting/freemarker/internal/IncludeDirective.java
+++ 
b/src/main/java/org/apache/sling/scripting/freemarker/internal/IncludeDirective.java
@@ -71,6 +71,7 @@ public final class IncludeDirective implements 
TemplateDirectiveModel {
     }
 
     @Override
+    @SuppressWarnings("checkstyle:AvoidInlineConditionals")
     public void execute(final Environment environment, final Map parameters, 
final TemplateModel[] loopVars, final TemplateDirectiveBody body) throws 
TemplateException, IOException {
 
         final SlingHttpServletRequest slingHttpServletRequest = 
(SlingHttpServletRequest) 
DeepUnwrap.unwrap(environment.getVariable(SlingBindings.REQUEST));
@@ -148,6 +149,7 @@ public final class IncludeDirective implements 
TemplateDirectiveModel {
         return dispatch(requestDispatcher, slingHttpServletRequest, 
slingHttpServletResponse);
     }
 
+    @SuppressWarnings("checkstyle:AvoidInlineConditionals")
     private String dispatch(final String path, final RequestDispatcherOptions 
requestDispatcherOptions, final SlingHttpServletRequest 
slingHttpServletRequest, final SlingHttpServletResponse 
slingHttpServletResponse) {
         // ensure the path is absolute and normalized
         final String absolutePath = path.startsWith("/") ? path : 
String.format("%s/%s", slingHttpServletRequest.getResource().getPath(), path);

Reply via email to