Author: fschumacher
Date: Thu Jul 13 17:43:15 2017
New Revision: 1801854
URL: http://svn.apache.org/viewvc?rev=1801854&view=rev
Log:
We are not not doing any real work here and it simplifies our code.
In preparation of Bugzilla Id: 61176 (and github pr #298)
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java?rev=1801854&r1=1801853&r2=1801854&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Thu Jul 13 17:43:15 2017
@@ -329,21 +329,15 @@ public class CacheManager extends Config
*/
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);
}
}
}
|