diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java index 849053a22..c9491b4db 100644 --- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java +++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java @@ -23,11 +23,11 @@ import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.config.ConfigurationException; import com.opensymphony.xwork2.inject.Container; +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerFactory; import freemarker.ext.beans.BeanModel; import freemarker.template.Configuration; import freemarker.template.TemplateException; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; import org.apache.struts2.ServletActionContext; import org.apache.struts2.views.JspSupportServlet; import org.apache.struts2.views.freemarker.FreemarkerManager; @@ -47,7 +47,7 @@ import java.io.IOException; public class StrutsFreeMarkerAttributeRenderer extends AbstractTypeDetectingAttributeRenderer { - private static Logger LOG = LogManager.getLogger(StrutsFreeMarkerAttributeRenderer.class); + private static Logger LOG = LoggerFactory.getLogger(StrutsFreeMarkerAttributeRenderer.class); @Override public void write(Object value, Attribute attribute, TilesRequestContext request) throws IOException { diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java index 1b01a8d4e..b19831392 100644 --- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java +++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java @@ -181,7 +181,7 @@ public class StrutsTilesContainerFactory extends BasicTilesContainerFactory { DefinitionPatternMatcherFactory wildcardFactory = new WildcardDefinitionPatternMatcherFactory(); DefinitionPatternMatcherFactory regexpFactory = new RegexpDefinitionPatternMatcherFactory(); - PrefixedPatternDefinitionResolver resolver = new PrefixedPatternDefinitionResolver<>(); + PrefixedPatternDefinitionResolver resolver = new PrefixedPatternDefinitionResolver(); resolver.registerDefinitionPatternMatcherFactory(PATTERN_WILDCARD, wildcardFactory); resolver.registerDefinitionPatternMatcherFactory(PATTERN_REGEXP, regexpFactory); @@ -192,7 +192,7 @@ public class StrutsTilesContainerFactory extends BasicTilesContainerFactory { protected List getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) { try { - Set finalSet = new HashSet<>(); + Set finalSet = new HashSet(); Set webINFSet = applicationContext.getResources("/WEB-INF/**/tiles*.xml"); Set metaINFSet = applicationContext.getResources("classpath*:META-INF/**/tiles*.xml"); @@ -239,24 +239,24 @@ public class StrutsTilesContainerFactory extends BasicTilesContainerFactory { PropertyAccessor objectPropertyAccessor = OgnlRuntime.getPropertyAccessor(Object.class); PropertyAccessor mapPropertyAccessor = OgnlRuntime.getPropertyAccessor(Map.class); PropertyAccessor applicationContextPropertyAccessor = - new NestedObjectDelegatePropertyAccessor<>( + new NestedObjectDelegatePropertyAccessor( new TilesApplicationContextNestedObjectExtractor(), objectPropertyAccessor); PropertyAccessor requestScopePropertyAccessor = - new NestedObjectDelegatePropertyAccessor<>( + new NestedObjectDelegatePropertyAccessor( new RequestScopeNestedObjectExtractor(), mapPropertyAccessor); PropertyAccessor sessionScopePropertyAccessor = - new NestedObjectDelegatePropertyAccessor<>( + new NestedObjectDelegatePropertyAccessor( new SessionScopeNestedObjectExtractor(), mapPropertyAccessor); PropertyAccessor applicationScopePropertyAccessor = - new NestedObjectDelegatePropertyAccessor<>( + new NestedObjectDelegatePropertyAccessor( new ApplicationScopeNestedObjectExtractor(), mapPropertyAccessor); PropertyAccessorDelegateFactory factory = new TilesContextPropertyAccessorDelegateFactory( objectPropertyAccessor, applicationContextPropertyAccessor, requestScopePropertyAccessor, sessionScopePropertyAccessor, applicationScopePropertyAccessor); - PropertyAccessor tilesRequestAccessor = new DelegatePropertyAccessor<>(factory); + PropertyAccessor tilesRequestAccessor = new DelegatePropertyAccessor(factory); OgnlRuntime.setPropertyAccessor(TilesRequestContext.class, tilesRequestAccessor); return new OGNLAttributeEvaluator(); } catch (OgnlException e) { diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java index b2e2700e8..5df819c2b 100644 --- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java +++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesInitializer.java @@ -19,8 +19,8 @@ package org.apache.struts2.tiles; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerFactory; import org.apache.tiles.TilesApplicationContext; import org.apache.tiles.factory.AbstractTilesContainerFactory; import org.apache.tiles.servlet.wildcard.WildcardServletTilesApplicationContext; @@ -30,7 +30,7 @@ import javax.servlet.ServletContext; public class StrutsTilesInitializer extends AbstractTilesInitializer { - private static final Logger LOG = LogManager.getLogger(StrutsTilesInitializer.class); + private static final Logger LOG = LoggerFactory.getLogger(StrutsTilesInitializer.class); @Override protected TilesApplicationContext createTilesApplicationContext(TilesApplicationContext preliminaryContext) { diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesListener.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesListener.java index db422403c..c55a8bfdc 100644 --- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesListener.java +++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesListener.java @@ -19,8 +19,8 @@ package org.apache.struts2.tiles; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; +import com.opensymphony.xwork2.util.logging.Logger; +import com.opensymphony.xwork2.util.logging.LoggerFactory; import org.apache.tiles.startup.TilesInitializer; import org.apache.tiles.web.startup.AbstractTilesListener;