Change-Id: Iabb627c8f584346eb8ace3c24afb63b4d1ad3d47
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
foundCookies.addAll(
extractCookies(HDR_SET_COOKIE2, cookieHeaderValues));
}
- if (foundCookies.size() > 0) {
+ if (!foundCookies.isEmpty()) {
try {
// update cookie lists with the newly received cookies!
Set<HttpCookie> cookies = cookieFile.getCookies(false);
conn.setReadTimeout(effTimeOut);
}
// set cookie header if necessary
- if (relevantCookies.size() > 0) {
+ if (!relevantCookies.isEmpty()) {
setCookieHeader(conn);
}