From 38c63334a4748838db1be82f7fb1f31fe6944a36 Mon Sep 17 00:00:00 2001
From: Lukasz Lenart
Date: Sun, 20 Feb 2022 10:37:25 +0100
Subject: [PATCH] WW-4963 Adds missing references to the new versions
---
.../interceptor/ServletConfigInterceptor.java | 32 +++++++++++--------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java
index 0ef0f3786..634240085 100644
--- a/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java
+++ b/core/src/main/java/org/apache/struts2/interceptor/ServletConfigInterceptor.java
@@ -45,25 +45,23 @@ import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
*
*
*
- *
* - {@link ServletContextAware}
- *
+ * - {@link org.apache.struts2.action.ServletContextAware}
* - {@link ServletRequestAware}
- *
+ * - {@link org.apache.struts2.action.ServletRequestAware}
* - {@link ServletResponseAware}
- *
+ * - {@link org.apache.struts2.action.ServletResponseAware}
* - {@link ParameterAware} - deprecated since 2.5.4, please use {@link HttpParametersAware}
- *
* - {@link HttpParametersAware}
- *
+ * - {@link org.apache.struts2.action.ParametersAware}
* - {@link RequestAware}
- *
+ * - {@link org.apache.struts2.action.ServletRequestAware}
* - {@link SessionAware}
- *
+ * - {@link org.apache.struts2.action.SessionAware}
* - {@link ApplicationAware}
- *
+ * - {@link org.apache.struts2.action.ApplicationAware}
* - {@link PrincipalAware}
- *
+ * - {@link org.apache.struts2.action.PrincipalAware}
*
*
*
@@ -101,13 +99,19 @@ import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
*
*
* @see ServletContextAware
+ * @see org.apache.struts2.action.ServletContextAware
* @see ServletRequestAware
+ * @see org.apache.struts2.action.ServletRequestAware
* @see ServletResponseAware
+ * @see org.apache.struts2.action.ServletResponseAware
* @see ParameterAware
- * @see ParametersAware
+ * @see org.apache.struts2.action.ParametersAware
* @see SessionAware
+ * @see org.apache.struts2.action.SessionAware
* @see ApplicationAware
+ * @see org.apache.struts2.action.ApplicationAware
* @see PrincipalAware
+ * @see org.apache.struts2.action.PrincipalAware
*/
public class ServletConfigInterceptor extends AbstractInterceptor implements StrutsStatics {
@@ -159,7 +163,7 @@ public class ServletConfigInterceptor extends AbstractInterceptor implements Str
if (action instanceof ApplicationAware) {
((ApplicationAware) action).setApplication(context.getApplication());
}
-
+
if (action instanceof org.apache.struts2.action.ApplicationAware) {
((org.apache.struts2.action.ApplicationAware) action).withApplication(context.getApplication());
}
@@ -167,7 +171,7 @@ public class ServletConfigInterceptor extends AbstractInterceptor implements Str
if (action instanceof SessionAware) {
((SessionAware) action).setSession(context.getSession());
}
-
+
if (action instanceof org.apache.struts2.action.SessionAware) {
((org.apache.struts2.action.SessionAware) action).withSession(context.getSession());
}
@@ -179,7 +183,7 @@ public class ServletConfigInterceptor extends AbstractInterceptor implements Str
if (action instanceof PrincipalAware) {
HttpServletRequest request = context.getServletRequest();
if(request != null) {
- // We are in servtlet environment, so principal information resides in HttpServletRequest
+ // We are in servlet environment, so principal information resides in HttpServletRequest
((PrincipalAware) action).setPrincipalProxy(new ServletPrincipalProxy(request));
}
}