You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2008/02/15 15:57:34 UTC
svn commit: r628075 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java
Author: tellison
Date: Fri Feb 15 06:57:33 2008
New Revision: 628075
URL: http://svn.apache.org/viewvc?rev=628075&view=rev
Log:
Fix JavaDoc
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java?rev=628075&r1=628074&r2=628075&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLEncoder.java Fri Feb 15 06:57:33 2008
@@ -89,10 +89,15 @@
*
* @param s
* the string to be converted
+ * @param enc
+ * the name of a charset to use for encoding unsafe chars
* @return the converted string
+ * @throws UnsupportedEncodingException
+ * if the named charset is unsupported
*/
public static String encode(String s, String enc)
throws UnsupportedEncodingException {
+
if (s == null || enc == null) {
throw new NullPointerException();
}