summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/URLConnection.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-13 05:34:53 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-13 05:34:53 +0000
commitaa39fcfc4f3ba91c50bcbe71b308965e004a21fe (patch)
tree180392150df900aa54518e207545032ef4c13d7e /libjava/java/net/URLConnection.java
parenta9badf78e33dcc8fc85f294822fd09c9a558f503 (diff)
downloadppe42-gcc-aa39fcfc4f3ba91c50bcbe71b308965e004a21fe.tar.gz
ppe42-gcc-aa39fcfc4f3ba91c50bcbe71b308965e004a21fe.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72420 138bc75d-0d04-0410-961f-82ee72b054a4
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 e39e5781639..370765f281f 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;
}
OpenPOWER on IntegriCloud