mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8656: removed unused input stream
there was code to close a stream that was never created
This commit is contained in:
parent
89bd6d020f
commit
4e65845789
|
|
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue