Removed usages of deprecated Callback.Adapter.
This commit is contained in:
parent
77a6514063
commit
a97d29f54b
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue