BEA Beehive @jpf:action Javadoc tags in the migrated JPF
files are flagged with this rule. The rule has a quick fix that
converts 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 quick fix migrates 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.