Refactoring to avoid code duplication - LANG-458
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@788275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
47cd2e5536
commit
275f3fa088
|
@ -218,9 +218,7 @@ public class Validate {
|
||||||
* @throws IllegalArgumentException if the object is <code>null</code>
|
* @throws IllegalArgumentException if the object is <code>null</code>
|
||||||
*/
|
*/
|
||||||
public static void notNull(Object object) {
|
public static void notNull(Object object) {
|
||||||
if (object == null) {
|
notNull(object, "The validated object is null");
|
||||||
throw new IllegalArgumentException("The validated object is null");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// notEmpty array
|
// notEmpty array
|
||||||
|
|
Loading…
Reference in New Issue