void (ResultData resultData) { ThreadingAssertions.assertEventDispatchThread(); currentState = State.FINISHED; if (resultData != null) { RequestInfo actualInfo = prepareRequestInfo(); if (requestInfo.equals(actualInfo)) { currentState = State.FINISHED_WITH_ACTUAL_DATA; onResultReady(actualInfo, resultData); } } }