Non utilizzare annotazioni BEA Beehive @jpf:exception-handler

I tag Javadoc BEA Beehive @jpf:exception-handler nei file JPF migrati vengono contrassegnati con questa regola. Verrà fornita una correzione automatica per questa regola che convertirà il tag in un'annotazione @Jpf.ExceptionHandler a livello di metodo.

L'esempio riportato di seguito mostra i tag Javadoc BEA Beehive @jpf:exception-handler:


/**
@jpf:exception-handler
 * @jpf:forward name="errorPage" path=" /error.jsp "
 */

protected Forward handleException(Exception e, String message)

La correzione automatica migrerà questi tag come mostrato nell'esempio seguente:


/**
@jpf:exception-handler
 * @jpf:forward name="errorPage" path=" /error.jsp "
 */

@Jpf.ExceptionHandler(forwards = { @Jpf.Forward(name = "errorPage", path = "/error.jsp") })
protected Forward handleException(Exception e, String message)

Il Javadoc viene convertito in commenti Java™ regolari, in modo che la regola non continui a rilevare il tag @jpf.