Permalink
Browse files

Fix renamed type AsyncTask->MvcAsyncTask

  • Loading branch information...
rstoyanchev committed Oct 31, 2012
1 parent 23077db commit 1368d339963039d388dd645ed239001efea9a219
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/springframework/samples/mvc/async/CallableController.java
@@ -8,7 +8,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
-import org.springframework.web.context.request.async.AsyncTask;
+import org.springframework.web.context.request.async.MvcAsyncTask;
@Controller
@RequestMapping("/async/callable")
@@ -61,7 +61,7 @@ public String call() throws Exception {
}
@RequestMapping("/custom-timeout-handling")
- public @ResponseBody AsyncTask<String> callableWithCustomTimeoutHandling() {
+ public @ResponseBody MvcAsyncTask<String> callableWithCustomTimeoutHandling() {
Callable<String> callable = new Callable<String>() {
@Override
@@ -71,7 +71,7 @@ public String call() throws Exception {
}
};
- return new AsyncTask<String>(1000, callable);
+ return new MvcAsyncTask<String>(1000, callable);
}
@ExceptionHandler

0 comments on commit 1368d33

Please sign in to comment.