@Test public void clone_ReturnsNewObject() throws Exception { Call<Object> clonedObject = testCall.clone(); assertNotNull(clonedObject); assertNotEquals(testCall, clonedObject); }
@SuppressWarnings("CloneDoesntCallSuperClone") @Override public OkHttpCall<T> clone() { return new OkHttpCall<>(rawCall.clone(), responseAdapter); }
OkHttpCall implements Call<T> { @SuppressWarnings("CloneDoesntCallSuperClone") @Override public OkHttpCall<T> clone() { return new OkHttpCall<>(rawCall.clone(), responseAdapter); } }
OkHttpCall implements Call<T> { @SuppressWarnings("CloneDoesntCallSuperClone") @Override public OkHttpCall<T> clone() { return new OkHttpCall<>(rawCall.clone(), responseAdapter); } OkHttpCall(okhttp3.Call rawCall, ResponseAdapter<T> adapter); }
OkHttpCall implements Call<T> { @SuppressWarnings("CloneDoesntCallSuperClone") @Override public OkHttpCall<T> clone() { return new OkHttpCall<>(rawCall.clone(), responseAdapter); } OkHttpCall(okhttp3.Call rawCall, ResponseAdapter<T> adapter); @Override T execute(); @Override void enqueue(final Callback<T> callback); @Override boolean isExecuted(); @Override void cancel(); @Override boolean isCanceled(); @SuppressWarnings("CloneDoesntCallSuperClone") @Override OkHttpCall<T> clone(); }
OkHttpCall implements Call<T> { @SuppressWarnings("CloneDoesntCallSuperClone") @Override public OkHttpCall<T> clone() { return new OkHttpCall<>(rawCall.clone(), responseAdapter); } OkHttpCall(okhttp3.Call rawCall, ResponseAdapter<T> adapter); @Override T execute(); @Override void enqueue(final Callback<T> callback); @Override boolean isExecuted(); @Override void cancel(); @Override boolean isCanceled(); @SuppressWarnings("CloneDoesntCallSuperClone") @Override OkHttpCall<T> clone();  }