mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
20.11.2014 b30f406570114a5a7de645fd46fc7b4bc619fb09
opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
@@ -450,8 +450,8 @@
    public static boolean isCertificateException(Throwable t) {
        boolean returnValue = false;
        while (!returnValue && (t != null)) {
            returnValue = (t instanceof SSLHandshakeException) || (t instanceof GeneralSecurityException);
        while (!returnValue && t != null) {
            returnValue = t instanceof SSLHandshakeException || t instanceof GeneralSecurityException;
            t = t.getCause();
        }
@@ -530,7 +530,7 @@
            return file.canWrite();
        }
        final File parentFile = file.getParentFile();
        return (parentFile != null && parentFile.canWrite());
        return parentFile != null && parentFile.canWrite();
    }
@@ -575,7 +575,7 @@
     */
    private static boolean isOutOfMemory(Throwable t) {
        boolean isOutOfMemory = false;
        while (!isOutOfMemory && (t != null)) {
        while (!isOutOfMemory && t != null) {
            if (t instanceof OutOfMemoryError) {
                isOutOfMemory = true;
            } else if (t instanceof IOException) {