Skip to content

Commit

Permalink
We are not not doing any real work here and it simplifies our code.
Browse files Browse the repository at this point in the history
In preparation of Bugzilla Id: 61176 (and github pr #298)


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1801854 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
FSchumacher committed Jul 13, 2017
1 parent 01732c1 commit 3f698be
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,21 +329,15 @@ public void setHeaders(HttpURLConnection conn, URL url) {
*/
public boolean inCache(URL url) {
CacheEntry entry = getCache().get(url.toString());
if (log.isDebugEnabled()){
log.debug("inCache "+url.toString()+" "+entry);
}
log.debug("inCache {} {}", url, entry);
if (entry != null){
final Date expiresDate = entry.getExpires();
if (expiresDate != null) {
if (expiresDate.after(new Date())) {
if (log.isDebugEnabled()){
log.debug("Expires= " + expiresDate + " (Valid)");
}
log.debug("Expires= {} (Valid)", expiresDate);
return true;
} else {
if (log.isDebugEnabled()){
log.debug("Expires= " + expiresDate + " (Expired)");
}
log.debug("Expires= {} (Expired)", expiresDate);
}
}
}
Expand Down

0 comments on commit 3f698be

Please sign in to comment.