jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1225789 - in /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control: CookieManager.java HeaderManager.java
Date Fri, 30 Dec 2011 10:31:26 GMT
Author: pmouawad
Date: Fri Dec 30 10:31:26 2011
New Revision: 1225789

URL: http://svn.apache.org/viewvc?rev=1225789&view=rev
Log:
Added TODO

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java?rev=1225789&r1=1225788&r2=1225789&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
Fri Dec 30 10:31:26 2011
@@ -146,7 +146,7 @@ public class CookieManager extends Confi
             file = new File(System.getProperty("user.dir") // $NON-NLS-1$
                     + File.separator + authFile);
         }
-        PrintWriter writer = new PrintWriter(new FileWriter(file));
+        PrintWriter writer = new PrintWriter(new FileWriter(file)); // TODO Charset ?
         writer.println("# JMeter generated Cookie file");// $NON-NLS-1$
         PropertyIterator cookies = getCookies().iterator();
         long now = System.currentTimeMillis();
@@ -172,7 +172,7 @@ public class CookieManager extends Confi
         }
         BufferedReader reader = null;
         if (file.canRead()) {
-            reader = new BufferedReader(new FileReader(file));
+            reader = new BufferedReader(new FileReader(file)); // TODO Charset ?
         } else {
             throw new IOException("The file you specified cannot be read.");
         }

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java?rev=1225789&r1=1225788&r2=1225789&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java
Fri Dec 30 10:31:26 2011
@@ -107,7 +107,7 @@ public class HeaderManager extends Confi
             file = new File(System.getProperty("user.dir")// $NON-NLS-1$
                     + File.separator + headFile);
         }
-        PrintWriter writer = new PrintWriter(new FileWriter(file));
+        PrintWriter writer = new PrintWriter(new FileWriter(file)); // TODO Charset ?
         writer.println("# JMeter generated Header file");// $NON-NLS-1$
         final CollectionProperty hdrs = getHeaders();
         for (int i = 0; i < hdrs.size(); i++) {
@@ -134,7 +134,7 @@ public class HeaderManager extends Confi
 
         BufferedReader reader = null;
         try {
-            reader = new BufferedReader(new FileReader(file));
+            reader = new BufferedReader(new FileReader(file)); // TODO Charset ?
             String line;
             while ((line = reader.readLine()) != null) {
                 try {



Mime
View raw message