Commit 0074c993 authored by ssalve's avatar ssalve

Done changes to correct finally block on 14NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173487 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bda2173a
......@@ -949,16 +949,24 @@ public class TaxEnvIC extends ValidatorEJB implements TaxEnvICRemote, TaxEnvICLo
//Added by sarita on 13NOV2017[start]
finally
{
if(rs != null)
try
{
rs.close();
rs = null;
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
if(pstmt != null)
catch(Exception e)
{
pstmt.close();
pstmt = null;
e.printStackTrace();
}
}
//Added by sarita on 13NOV2017[end]
return errString;
......@@ -1046,15 +1054,22 @@ public class TaxEnvIC extends ValidatorEJB implements TaxEnvICRemote, TaxEnvICLo
//Added by sarita on 13NOV2017[start]
finally
{
if(rs != null)
try
{
rs.close();
rs = null;
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
if(pstmt != null)
catch(Exception e)
{
pstmt.close();
pstmt = null;
e.printStackTrace();
}
}
//Added by sarita on 13NOV2017[end]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment