Back to project page dashclock-gerrit.
The source code is released under:
Apache License
If you think the Android project dashclock-gerrit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.plusonelabs.dashclock.gerrit.util; /* www. j a v a2 s . co m*/ public class ParamCheck { public static void paramNotNull(Object object, String name) { if (object == null) { throw new IllegalArgumentException("The parameter " + name + " can not be null."); } } public static void ensureNotNull(Object object, String name) { if (object == null) { throw new IllegalStateException("The value " + name + " can not be null."); } } }