Lightning browser with I2P configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
466 B

package org.purplei2p.lightning.utils;
import android.support.annotation.Nullable;
public class Preconditions {
/**
* Ensure that an object is not null
* and throw a RuntimeException if it
* is null.
*
* @param object check nullness on this object.
*/
public static void checkNonNull(@Nullable Object object) {
if (object == null) {
throw new RuntimeException("Object must not be null");
}
}
}