CLOUDSTACK-8656: removed unused input stream

there was code to close a stream that was never created
This commit is contained in:
Daan Hoogland 2015-08-02 12:58:56 +02:00
parent 89bd6d020f
commit 4e65845789
1 changed files with 0 additions and 10 deletions

View File

@ -16,9 +16,6 @@
// under the License.
package com.cloud.certificate.dao;
import java.io.BufferedInputStream;
import java.io.IOException;
import javax.ejb.Local;
import org.apache.log4j.Logger;
@ -41,7 +38,6 @@ public class CertificateDaoImpl extends GenericDaoBase<CertificateVO, Long> impl
@Override
public Long persistCustomCertToDb(String certStr, CertificateVO cert, Long managementServerId) {
BufferedInputStream f = null;
try {
cert.setCertificate(certStr);
cert.setUpdated("Y");
@ -50,12 +46,6 @@ public class CertificateDaoImpl extends GenericDaoBase<CertificateVO, Long> impl
} catch (Exception e) {
s_logger.warn("Unable to read the certificate: " + e);
return new Long(0);
} finally {
if (f != null)
try {
f.close();
} catch (IOException ignored) {
}
}
}
}