From d79a9eede731ac48cfeb152ca59f8dd574ae1284 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Tue, 16 Mar 2010 10:57:58 -0700 Subject: Fixing an @link issue that is upsetting DroidDoc. Change-Id: I9837cfd46684ac6d5b9ec4ac6809da3c3f61d57d --- json/src/main/java/org/json/JSONTokener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'json') diff --git a/json/src/main/java/org/json/JSONTokener.java b/json/src/main/java/org/json/JSONTokener.java index d5d2dd2..3b0f593 100644 --- a/json/src/main/java/org/json/JSONTokener.java +++ b/json/src/main/java/org/json/JSONTokener.java @@ -482,8 +482,8 @@ public class JSONTokener { * *

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 { * *

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 */ -- cgit v1.1