Tagurile Javadoc BEA Beehive @jpf:exception-handler din fişierele JPF migrate sunt semnalate cu această regulă. Regula are o corecţie rapidă care converteşte tagul la o adnotare la nivel de metodă @Jpf.ExceptionHandler.
Următorul exemplu arată tagurile Javadoc @jpf:exception-handler BEA Beehive:
|
/** * @jpf:exception-handler * @jpf:forward name="errorPage" path="/error.jsp" */ protected Forward handleException(Exception e, String message) |
Această corecţie rapidă migrează tagurile aşa cum este prezentat în următorul exemplu:
|
/** * @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) |
Javadoc este convertit la comentarii Java™ normale aşa că regulă nu mai continuă să detecteze tagul @jpf.