Add close because full stream is read
This commit is contained in:
parent
1eeb7d894c
commit
0d8c3e6604
1 changed files with 3 additions and 2 deletions
|
@ -41,11 +41,11 @@ public class Algorithms {
|
|||
private static final int BUFFER_SIZE = 1024;
|
||||
private static final Log log = PlatformUtil.getLog(Algorithms.class);
|
||||
|
||||
public static boolean isEmpty(Collection c) {
|
||||
public static boolean isEmpty(Collection<?> c) {
|
||||
return c == null || c.size() == 0;
|
||||
}
|
||||
|
||||
public static boolean isEmpty(Map map) {
|
||||
public static boolean isEmpty(Map<?, ?> map) {
|
||||
return map == null || map.size() == 0;
|
||||
}
|
||||
|
||||
|
@ -498,6 +498,7 @@ public class Algorithms {
|
|||
}
|
||||
responseBody.append(s);
|
||||
}
|
||||
i.close();
|
||||
}
|
||||
return responseBody;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue