OSDN Git Service

Fixing an @link issue that is upsetting DroidDoc.
authorJesse Wilson <jessewilson@google.com>
Tue, 16 Mar 2010 17:57:58 +0000 (10:57 -0700)
committerJesse Wilson <jessewilson@google.com>
Tue, 16 Mar 2010 17:57:58 +0000 (10:57 -0700)
Change-Id: I9837cfd46684ac6d5b9ec4ac6809da3c3f61d57d

libcore/json/src/main/java/org/json/JSONTokener.java

index d5d2dd2..3b0f593 100644 (file)
@@ -482,8 +482,8 @@ public class JSONTokener {
      *
      * <p>The returned string shares its backing character array with this
      * tokener's input string. If a reference to the returned string may be held
-     * indefinitely, you should {@link String(String) copy} it first to avoid
-     * memory leaks.
+     * indefinitely, you should use {@code new String(result)} to copy it first
+     * to avoid memory leaks.
      *
      * @throws JSONException if the remaining input is not long enough to
      *     satisfy this request.
@@ -508,8 +508,8 @@ public class JSONTokener {
      *
      * <p>The returned string shares its backing character array with this
      * tokener's input string. If a reference to the returned string may be held
-     * indefinitely, you should {@link String(String) copy} it first to avoid
-     * memory leaks.
+     * indefinitely, you should use {@code new String(result)} to copy it first
+     * to avoid memory leaks.
      *
      * @return a possibly-empty string
      */