コード例 #1
0
 /**
  * Apply refactoring.
  *
  * @param session the refactoring session
  * @return the result fo applied refactoring
  * @throws RefactoringException when there are no corresponding refactoring session
  */
 @POST
 @Path("apply")
 @Produces("application/json")
 @Consumes("application/json")
 public RefactoringResult applyRefactoring(RefactoringSession session)
     throws RefactoringException {
   return manager.applyRefactoring(session.getSessionId());
 }