aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/net/URLConnection.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-10-13 05:34:53 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-10-13 05:34:53 +0000
commit94f415861c876c2b755f7f5125d785e2c7b580e6 (patch)
tree180392150df900aa54518e207545032ef4c13d7e /libjava/java/net/URLConnection.java
parent9917dcbafef6fbd683874267e2dba47a3467c9a4 (diff)
downloadgcc-94f415861c876c2b755f7f5125d785e2c7b580e6.zip
gcc-94f415861c876c2b755f7f5125d785e2c7b580e6.tar.gz
gcc-94f415861c876c2b755f7f5125d785e2c7b580e6.tar.bz2
2003-10-13 Michael Koch <konqueror@gmx.de>
* java/net/JarURLConnection.java (jarFileURL): Added dcoumentation. (jarFileURLConnection): Reformated documentation. (entryName): Renamed from "element", documentation rewritten. (connectionCache): Renamed from "conn_cache", documentation reformated. (JarURLConnection): Check URL protocol. (getEntryName): Use entryName. (connect): Use connectionCache. (getInputStream): Use entryName, fixed comment. (getJarEntry): Use entryName. (getHeaders): Use entryName. * java/net/URLConnection.java (addRequestProperty): Fixed documentation. (setDefaultRequestProptery): Added comment that it does nothing since JDK 1.3. (getDefaultRequestProperty): Likewise. From-SVN: r72420
Diffstat (limited to 'libjava/java/net/URLConnection.java')
-rw-r--r--libjava/java/net/URLConnection.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/libjava/java/net/URLConnection.java b/libjava/java/net/URLConnection.java
index e39e578..370765f 100644
--- a/libjava/java/net/URLConnection.java
+++ b/libjava/java/net/URLConnection.java
@@ -726,7 +726,7 @@ public abstract class URLConnection
/**
* Adds a new request property by a key/value pair.
- * This method does not overwrite* existing properties with the same key.
+ * This method does not overwrite existing properties with the same key.
*
* @param key Key of the property to add
* @param value Value of the Property to add
@@ -800,14 +800,14 @@ public abstract class URLConnection
* @param key The request property name the default is being set for
* @param value The value to set the default to
*
- * @deprecated 1.3 The method setRequestProperty should be used instead
+ * @deprecated 1.3 The method setRequestProperty should be used instead.
+ * This method does nothing now.
*
* @see URLConnectionr#setRequestProperty(String key, String value)
*/
- public static void setDefaultRequestProperty(String key, String value)
+ public static void setDefaultRequestProperty (String key, String value)
{
- // Do nothing unless overridden by subclasses that support setting
- // default request properties.
+ // This method does nothing since JDK 1.3.
}
/**
@@ -819,13 +819,14 @@ public abstract class URLConnection
*
* @return The value of the default property or null if not available
*
- * @deprecated 1.3 The method getRequestProperty should be used instead
+ * @deprecated 1.3 The method getRequestProperty should be used instead.
+ * This method does nothing now.
*
* @see URLConnection#getRequestProperty(String key)
*/
public static String getDefaultRequestProperty(String key)
{
- // Overridden by subclasses that support default request properties.
+ // This method does nothing since JDK 1.3.
return null;
}