jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1801858 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
Date Thu, 13 Jul 2017 17:54:29 GMT
Author: fschumacher
Date: Thu Jul 13 17:54:29 2017
New Revision: 1801858

URL: http://svn.apache.org/viewvc?rev=1801858&view=rev
Log:
Reformat to make it easier to read.

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=1801858&r1=1801857&r2=1801858&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:54:29 2017
@@ -96,25 +96,30 @@ public class CacheManager extends Config
      * Perhaps add original response later?
      */
     // package-protected to allow access by unit-test cases
-    static class CacheEntry{
+    static class CacheEntry {
         private final String lastModified;
         private final String etag;
         private final Date expires;
-        public CacheEntry(String lastModified, Date expires, String etag){
-           this.lastModified = lastModified;
-           this.etag = etag;
-           this.expires = expires;
-       }
+
+        public CacheEntry(String lastModified, Date expires, String etag) {
+            this.lastModified = lastModified;
+            this.etag = etag;
+            this.expires = expires;
+        }
+
         public String getLastModified() {
             return lastModified;
         }
+
         public String getEtag() {
             return etag;
         }
+
         @Override
-        public String toString(){
-            return lastModified+" "+etag;
+        public String toString() {
+            return lastModified + " " + etag;
         }
+
         public Date getExpires() {
             return expires;
         }



Mime
View raw message