package org.sagebionetworks.bridge.android.util.retrofit;

import android.support.annotation.AnyThread;
import android.support.annotation.NonNull;

import org.sagebionetworks.bridge.rest.model.UserSessionInfo;

import retrofit2.Call;
import rx.Completable;
import rx.Observable;
import rx.Single;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Created by jyliu on 1/19/2017.
 */
@AnyThread
public class RxUtils {
    @NonNull
    public static <T> Single<T> toBodySingle(@NonNull Call<T> call) {
        checkNotNull(call);

        return Observable.create(new BodyOnSubscribe(new CallOnSubscribe<>(call))).toSingle();
    }

}

@@ -152,108 +152,22 @@
 ort 
-org.sagebionetworks.bridge.rest.model.UserSessionInfo;%0A%0Aimport retrofit2.Call;%0Aimport rx.Completable
+retrofit2.Call
 ;%0Aim
@@ -511,16 +511,18 @@
 ubscribe
+%3C%3E
 (new Cal

Fix unchecked operation