Do not use BEA Beehive @jpf:action annotations

BEA Beehive @jpf:action Javadoc tags in the migrated JPF files are flagged with this rule. When an automated fix is provided for this rule, it will convert the tag to a @Jpf.Action method-level annotation. These annotations typically define a list of forwards.

The following example shows BEA Beehive @jpf:action Javadoc tags:


/**
 * @jpf:action
 * @jpf:forward name="login" path="login.jsp"
 * @jpf:forward name="success" path="index.jsp"
 * @jpf:validation-error-forward name="error" path="login.jsp"
 */

protected Forward AuthAction(AuthActionForm form)

The automated fix will migrate these tags as shown in the following example:


/*
 * @jpf:action
 * @jpf:forward name="login" path="login.jsp"
 * @jpf:forward name="success" path="index.jsp"
 * @jpf:validation-error-forward name="error" path="login.jsp"
 */

@Jpf.Action(
forwards = {
@Jpf.Forward(name = "login", path = "/login.jsp"),
@Jpf.Forward(name = "success", path = "/index.jsp")
},
validationErrorForward = @Jpf.Forward(name = "error", path = "/login.jsp"))
protected Forward AuthAction(AuthActionForm form)

The Javadoc is converted to regular Java comments so that the rule does not continue to detect the @jpf tag.