Merge pull request #851 from making/patch-1

* pr/851:
  Remove type parameter of ResponseBodyEmitter
This commit is contained in:
Stephane Nicoll 2015-07-31 17:46:12 +02:00
commit 92d266f489
1 changed files with 2 additions and 2 deletions

View File

@ -2196,8 +2196,8 @@ Here is an example of that:
[subs="verbatim,quotes"]
----
@RequestMapping("/events")
public ResponseBodyEmitter<String> handle() {
ResponseBodyEmitter<String> emitter = new ResponseBodyEmitter<String>();
public ResponseBodyEmitter handle() {
ResponseBodyEmitter emitter = new ResponseBodyEmitter();
// Save the emitter somewhere..
return emitter;
}