Removed usages of deprecated Callback.Adapter.

This commit is contained in:
Simone Bordet 2016-03-31 12:58:50 +02:00
parent 77a6514063
commit a97d29f54b
1 changed files with 2 additions and 4 deletions

View File

@ -209,8 +209,7 @@ public class ResponseNotifier
} }
notifyHeaders(listeners, response); notifyHeaders(listeners, response);
if (response instanceof ContentResponse) if (response instanceof ContentResponse)
// TODO: handle callback notifyContent(listeners, response, ByteBuffer.wrap(((ContentResponse)response).getContent()), Callback.NOOP);
notifyContent(listeners, response, ByteBuffer.wrap(((ContentResponse)response).getContent()), new Callback.Adapter());
notifySuccess(listeners, response); notifySuccess(listeners, response);
} }
@ -231,8 +230,7 @@ public class ResponseNotifier
} }
notifyHeaders(listeners, response); notifyHeaders(listeners, response);
if (response instanceof ContentResponse) if (response instanceof ContentResponse)
// TODO: handle callback notifyContent(listeners, response, ByteBuffer.wrap(((ContentResponse)response).getContent()), Callback.NOOP);
notifyContent(listeners, response, ByteBuffer.wrap(((ContentResponse)response).getContent()), new Callback.Adapter());
notifyFailure(listeners, response, failure); notifyFailure(listeners, response, failure);
} }