IDEMPIERE-2544:to more warning compiler hidden good warning

leak io
This commit is contained in:
hieplq 2017-11-30 13:44:30 +07:00
parent 5044414ae4
commit 0305e1bf32
1 changed files with 3 additions and 0 deletions

View File

@ -465,6 +465,8 @@ public class EMailProcessor
int c; int c;
while ((c = is.read()) != -1) while ((c = is.read()) != -1)
sb.append((char)c); sb.append((char)c);
is.close();
deliveryMessage = sb.toString().trim(); deliveryMessage = sb.toString().trim();
} }
else else
@ -674,6 +676,7 @@ public class EMailProcessor
int c; int c;
while ((c = is.read()) != -1) while ((c = is.read()) != -1)
System.out.write(c); System.out.write(c);
is.close();
} }
else else
{ {