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

Jean-Noël Rouvignac
25.26.2016 9a300db9864e8da7187930315a9784369ace9c74
opendj-server-legacy/src/main/java/org/opends/server/backends/TrustStoreBackend.java
@@ -988,13 +988,9 @@
          File tempDir = getFileForPath("config");
          File tempFile = File.createTempFile(configuration.getBackendId(),
                                              certAlias, tempDir);
          try
          try (FileOutputStream outputStream = new FileOutputStream(tempFile.getPath(), false))
          {
            try (FileOutputStream outputStream = new FileOutputStream(tempFile.getPath(), false))
            {
              certBytes.copyTo(outputStream);
            }
            certBytes.copyTo(outputStream);
            certificateManager.addCertificate(certAlias, tempFile);
          }
          finally