diff options
author | juh <none@none> | 2013-07-30 11:04:19 -0700 |
---|---|---|
committer | juh <none@none> | 2013-07-30 11:04:19 -0700 |
commit | 97e7749abe04fa5094ed2414a8dee53d237e20fe (patch) | |
tree | 349d3b958851e8c3c689cce538d077e6bbab28aa /src/share/classes/java/net/URLEncoder.java | |
parent | 37c5fe686bc5dc2bfae893af621a90f7d0068c0f (diff) | |
download | jdk8u_jdk-97e7749abe04fa5094ed2414a8dee53d237e20fe.tar.gz |
8021833: javadoc cleanup in java.net
Summary: <code> and <tt> converted to {@code }; package.html to package-info.java
Reviewed-by: darcy, chegar
Diffstat (limited to 'src/share/classes/java/net/URLEncoder.java')
-rw-r--r-- | src/share/classes/java/net/URLEncoder.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/share/classes/java/net/URLEncoder.java b/src/share/classes/java/net/URLEncoder.java index 68fca8ca5c..b5c4a8c32f 100644 --- a/src/share/classes/java/net/URLEncoder.java +++ b/src/share/classes/java/net/URLEncoder.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -51,19 +51,19 @@ import sun.security.action.GetPropertyAction; * * <p> * <ul> - * <li>The alphanumeric characters "<code>a</code>" through - * "<code>z</code>", "<code>A</code>" through - * "<code>Z</code>" and "<code>0</code>" - * through "<code>9</code>" remain the same. - * <li>The special characters "<code>.</code>", - * "<code>-</code>", "<code>*</code>", and - * "<code>_</code>" remain the same. - * <li>The space character "<code> </code>" is - * converted into a plus sign "<code>+</code>". + * <li>The alphanumeric characters "{@code a}" through + * "{@code z}", "{@code A}" through + * "{@code Z}" and "{@code 0}" + * through "{@code 9}" remain the same. + * <li>The special characters "{@code .}", + * "{@code -}", "{@code *}", and + * "{@code _}" remain the same. + * <li>The space character " " is + * converted into a plus sign "{@code +}". * <li>All other characters are unsafe and are first converted into * one or more bytes using some encoding scheme. Then each byte is * represented by the 3-character string - * "<code>%<i>xy</i></code>", where <i>xy</i> is the + * "<i>{@code %xy}</i>", where <i>xy</i> is the * two-digit hexadecimal representation of the byte. * The recommended encoding scheme to use is UTF-8. However, * for compatibility reasons, if an encoding is not specified, @@ -152,15 +152,15 @@ public class URLEncoder { private URLEncoder() { } /** - * Translates a string into <code>x-www-form-urlencoded</code> + * Translates a string into {@code x-www-form-urlencoded} * format. This method uses the platform's default encoding * as the encoding scheme to obtain the bytes for unsafe characters. * - * @param s <code>String</code> to be translated. + * @param s {@code String} to be translated. * @deprecated The resulting string may vary depending on the platform's * default encoding. Instead, use the encode(String,String) * method to specify the encoding. - * @return the translated <code>String</code>. + * @return the translated {@code String}. */ @Deprecated public static String encode(String s) { @@ -177,7 +177,7 @@ public class URLEncoder { } /** - * Translates a string into <code>application/x-www-form-urlencoded</code> + * Translates a string into {@code application/x-www-form-urlencoded} * format using a specific encoding scheme. This method uses the * supplied encoding scheme to obtain the bytes for unsafe * characters. @@ -188,11 +188,11 @@ public class URLEncoder { * UTF-8 should be used. Not doing so may introduce * incompatibilites.</em> * - * @param s <code>String</code> to be translated. + * @param s {@code String} to be translated. * @param enc The name of a supported * <a href="../lang/package-summary.html#charenc">character * encoding</a>. - * @return the translated <code>String</code>. + * @return the translated {@code String}. * @exception UnsupportedEncodingException * If the named encoding is not supported * @see URLDecoder#decode(java.lang.String, java.lang.String) |