| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Return true if and only if o1 and o2 are both null or o1.equals(o2). |
| | | * |
| | | * @param o1 the first object to compare |
| | | * @param o2 the second object to compare |
| | | * @return true iff o1 and o2 are equal |
| | | */ |
| | | public static boolean objectsAreEqual(Object o1, Object o2) |
| | | { |
| | | if (o1 == null) |
| | | { |
| | | return (o2 == null); |
| | | } |
| | | else |
| | | { |
| | | return o1.equals(o2); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Retrieves a stack trace from the provided exception as a single-line |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Attempts to delete the specified file or directory. If it is a directory, |
| | | * then any files or subdirectories that it contains will be recursively |