package io.particle.android.sdk.utils;

/**
 * Like Guava's Preconditions, but without the overwhelming method count cost
 */
public class Preconditions {

    public static void checkArgument(boolean condition, String errorMessage) {
        if (!condition) {
            throw new IllegalArgumentException(String.valueOf(errorMessage));
        }
    }

}

@@ -33,16 +33,61 @@
 utils;%0A%0A
+import android.support.annotation.Nullable;%0A%0A
 /**%0A * L
@@ -394,10 +394,418 @@
 %0A    %7D%0A%0A
+%0A    public static %3CT%3E T checkNotNull(T reference) %7B%0A        if (reference == null) %7B%0A            throw new NullPointerException();%0A        %7D%0A        return reference;%0A    %7D%0A%0A%0A    public static %3CT%3E T checkNotNull(T reference, @Nullable Object errorMessage) %7B%0A        if (reference == null) %7B%0A            throw new NullPointerException(String.valueOf(errorMessage));%0A        %7D%0A        return reference;%0A    %7D%0A
 %7D%0A

Include a couple more Preconditions methods, needed by the setup lib