Package org.apache.ivy.util
Class Checks
java.lang.Object
org.apache.ivy.util.Checks
Utility class used to perform some checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
checkAbsolute
(File f, String fileName) static File
checkAbsolute
(String path, String fileName) static void
checkNotNull
(Object o, String objectName) Checks that an object is not null, and throw an exception if the object is null.
-
Method Details
-
checkNotNull
Checks that an object is not null, and throw an exception if the object is null.- Parameters:
o
- the object to checkobjectName
- the name of the object to check. This name will be used in the exception message.- Throws:
IllegalArgumentException
- if the object is null
-
checkAbsolute
-
checkAbsolute
-