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:
Henri Yandell 2009-06-25 06:58:11 +00:00
parent 47cd2e5536
commit 275f3fa088
1 changed files with 1 additions and 3 deletions

View File

@ -218,9 +218,7 @@ public class Validate {
* @throws IllegalArgumentException if the object is <code>null</code>
*/
public static void notNull(Object object) {
if (object == null) {
throw new IllegalArgumentException("The validated object is null");
}
notNull(object, "The validated object is null");
}
// notEmpty array