Skip to content

Commit

Permalink
WW-5459 Move new Action class into action package
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Nov 2, 2024
1 parent 2beac8e commit b001c61
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/com/opensymphony/xwork2/Action.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
/**
* {@inheritDoc}
*
* @deprecated since 6.7.0, use {@link org.apache.struts2.Action} instead.
* @deprecated since 6.7.0, use {@link org.apache.struts2.action.Action} instead.
*/
@Deprecated
public interface Action extends org.apache.struts2.Action {
public interface Action extends org.apache.struts2.action.Action {
}
1 change: 1 addition & 0 deletions core/src/main/java/org/apache/struts2/ActionContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.opensymphony.xwork2.conversion.impl.ConversionData;
import com.opensymphony.xwork2.inject.Container;
import org.apache.struts2.action.Action;
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import org.apache.struts2.util.ValueStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.struts2;

import com.opensymphony.xwork2.ActionChainResult;
import org.apache.struts2.action.Action;
import org.apache.struts2.interceptor.PreResultListener;
import org.apache.struts2.result.Result;
import org.apache.struts2.util.ValueStack;
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/apache/struts2/ActionSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.action.Action;
import org.apache.struts2.interceptor.ValidationAware;

import java.io.Serializable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2;
package org.apache.struts2.action;

/**
* All actions <b>may</b> implement this interface, which exposes the <code>execute()</code> method.
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/apache/struts2/result/Result.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package org.apache.struts2.result;

import org.apache.struts2.Action;
import org.apache.struts2.ActionInvocation;
import org.apache.struts2.action.Action;

import java.io.Serializable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void allowlist() throws Exception {
Class.forName("org.apache.struts2.interceptor.Interceptor"),
Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
Class.forName("org.apache.struts2.result.Result"),
Class.forName("org.apache.struts2.Action"),
Class.forName("org.apache.struts2.action.Action"),
Class.forName("org.apache.struts2.Validateable"),
Class.forName("org.apache.struts2.interceptor.ValidationAware")
);
Expand Down Expand Up @@ -99,7 +99,7 @@ public void allowlist_1only() throws Exception {
Class.forName("org.apache.struts2.interceptor.Interceptor"),
Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
Class.forName("org.apache.struts2.result.Result"),
Class.forName("org.apache.struts2.Action"),
Class.forName("org.apache.struts2.action.Action"),
Class.forName("org.apache.struts2.Validateable"),
Class.forName("org.apache.struts2.interceptor.ValidationAware")
);
Expand Down Expand Up @@ -130,7 +130,7 @@ public void allowlist_2only() throws Exception {
Class.forName("org.apache.struts2.interceptor.Interceptor"),
Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
Class.forName("org.apache.struts2.result.Result"),
Class.forName("org.apache.struts2.Action"),
Class.forName("org.apache.struts2.action.Action"),
Class.forName("org.apache.struts2.Validateable"),
Class.forName("org.apache.struts2.interceptor.ValidationAware")
);
Expand Down

0 comments on commit b001c61

Please sign in to comment.