harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r901720 - in /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net: CookieManager.java HttpCookie.java
Date Thu, 21 Jan 2010 14:24:37 GMT
Author: hindessm
Date: Thu Jan 21 14:24:36 2010
New Revision: 901720

URL: http://svn.apache.org/viewvc?rev=901720&view=rev
Log:
Minor javadoc fixes.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/CookieManager.java
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/HttpCookie.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/CookieManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/CookieManager.java?rev=901720&r1=901719&r2=901720&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/CookieManager.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/CookieManager.java
Thu Jan 21 14:24:36 2010
@@ -86,8 +86,8 @@
      *            a CookiePolicy to be used by cookie manager
      *            ACCEPT_ORIGINAL_SERVER will be used if the arg is null.
      */
-    public CookieManager(CookieStore s, CookiePolicy cookiePolicy) {
-        store = s == null ? new CookieStoreImpl() : s;
+    public CookieManager(CookieStore store, CookiePolicy cookiePolicy) {
+        this.store = store == null ? new CookieStoreImpl() : store;
         policy = cookiePolicy == null ? CookiePolicy.ACCEPT_ORIGINAL_SERVER
                 : cookiePolicy;
     }

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/HttpCookie.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/HttpCookie.java?rev=901720&r1=901719&r2=901720&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/HttpCookie.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/net/HttpCookie.java
Thu Jan 21 14:24:36 2010
@@ -438,14 +438,14 @@
      * @throws NullPointerException
      *             if the value of name is null
      */
-    public HttpCookie(String n, String v) {
-        String ntrim = n.trim(); // erase leading and trailing whitespaces
+    public HttpCookie(String name, String value) {
+        String ntrim = name.trim(); // erase leading and trailing whitespaces
         if (!isValidName(ntrim)) {
             throw new IllegalArgumentException(Msg.getString("KB002")); //$NON-NLS-1$
         }
 
-        name = ntrim;
-        value = v;
+        this.name = ntrim;
+        this.value = value;
     }
 
     private void attrToString(StringBuilder builder, String attrName,
@@ -697,8 +697,8 @@
      * @param discard
      *            the value for discard attribute
      */
-    public void setDiscard(boolean dis) {
-        discard = dis;
+    public void setDiscard(boolean discard) {
+        this.discard = discard;
     }
 
     /**
@@ -730,8 +730,8 @@
      * @param path
      *            the path to which this cookie is returned
      */
-    public void setPath(String p) {
-        path = p;
+    public void setPath(String path) {
+        this.path = path;
     }
 
     /**



Mime
View raw message