remove try/catch block from finalize methods
parent
5bff67d62c
commit
2a7997da29
|
@ -1544,17 +1544,12 @@ public class WolfSSLContext {
|
||||||
@Override
|
@Override
|
||||||
protected void finalize() throws Throwable
|
protected void finalize() throws Throwable
|
||||||
{
|
{
|
||||||
try {
|
if (this.active == true) {
|
||||||
if (this.active == true) {
|
/* free resources, set state */
|
||||||
/* free resources, set state */
|
this.free();
|
||||||
this.free();
|
this.active = false;
|
||||||
this.active = false;
|
|
||||||
}
|
|
||||||
} catch (Throwable t) {
|
|
||||||
throw t;
|
|
||||||
} finally {
|
|
||||||
super.finalize();
|
|
||||||
}
|
}
|
||||||
|
super.finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* end WolfSSLContext */
|
} /* end WolfSSLContext */
|
||||||
|
|
|
@ -2109,17 +2109,12 @@ public class WolfSSLSession {
|
||||||
@Override
|
@Override
|
||||||
protected void finalize() throws Throwable
|
protected void finalize() throws Throwable
|
||||||
{
|
{
|
||||||
try {
|
if (this.active == true) {
|
||||||
if (this.active == true) {
|
/* free resources, set state */
|
||||||
/* free resources, set state */
|
this.freeSSL();
|
||||||
this.freeSSL();
|
this.active = false;
|
||||||
this.active = false;
|
|
||||||
}
|
|
||||||
} catch (Throwable t) {
|
|
||||||
throw t;
|
|
||||||
} finally {
|
|
||||||
super.finalize();
|
|
||||||
}
|
}
|
||||||
|
super.finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* end WolfSSLSession */
|
} /* end WolfSSLSession */
|
||||||
|
|
Loading…
Reference in New Issue