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

Violette Roche-Montane
11.38.2014 eb8ab492e9095c3ee7f88527d9e61cb3cf4ca2d5
opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/LDIFSearch.java
@@ -28,6 +28,7 @@
import static com.forgerock.opendj.cli.ArgumentConstants.*;
import static com.forgerock.opendj.ldap.tools.ToolsMessages.*;
import static com.forgerock.opendj.cli.Utils.filterExitCode;
import static org.forgerock.util.Utils.closeSilently;
import java.io.BufferedReader;
import java.io.FileInputStream;
@@ -225,7 +226,7 @@
                errPrintln(LocalizableMessage.raw(e.toString()));
                return ResultCode.CLIENT_SIDE_FILTER_ERROR.intValue();
            } finally {
                closeIfNotNull(in);
                closeSilently(in);
            }
        }
@@ -305,8 +306,8 @@
            }
            return ResultCode.CLIENT_SIDE_LOCAL_ERROR.intValue();
        } finally {
            closeIfNotNull(sourceReader, outputWriter);
            closeIfNotNull(sourceInputStream, outputStream);
            closeSilently(sourceReader, outputWriter);
            closeSilently(sourceInputStream, outputStream);
        }
        return ResultCode.SUCCESS.intValue();