diff options
author | Jesse Wilson <jessewilson@google.com> | 2010-03-18 11:18:42 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2010-03-18 11:18:42 -0700 |
commit | 95cf9534436835291927cb4bcb36842731319da8 (patch) | |
tree | bd5db103bdce8d7b66fa80253312cacf101bf9cc /json | |
parent | 0bd7c8e0333e2e641d1b0a1fafc0e07d0defa761 (diff) | |
download | libcore-95cf9534436835291927cb4bcb36842731319da8.zip libcore-95cf9534436835291927cb4bcb36842731319da8.tar.gz libcore-95cf9534436835291927cb4bcb36842731319da8.tar.bz2 |
Drop needless parens from Javadoc.
Although this violates my longstanding style preference, it agrees
with almighty JJB's official ArrayList, which is Good Enough For Me.
Change-Id: I7b608c12e04d0b7789bfcabeab4b7347ad22baca
Diffstat (limited to 'json')
-rw-r--r-- | json/src/main/java/org/json/JSONArray.java | 2 | ||||
-rw-r--r-- | json/src/main/java/org/json/JSONObject.java | 12 | ||||
-rw-r--r-- | json/src/main/java/org/json/JSONStringer.java | 12 | ||||
-rw-r--r-- | json/src/main/java/org/json/JSONTokener.java | 2 |
4 files changed, 14 insertions, 14 deletions
diff --git a/json/src/main/java/org/json/JSONArray.java b/json/src/main/java/org/json/JSONArray.java index b788a50..09d9725 100644 --- a/json/src/main/java/org/json/JSONArray.java +++ b/json/src/main/java/org/json/JSONArray.java @@ -35,7 +35,7 @@ import java.util.Collection; * * <p><strong>Warning:</strong> this class represents null in two incompatible * ways: the standard Java {@code null} reference, and the sentinel value {@link - * JSONObject#NULL}. In particular, {@code get()} fails if the requested index + * JSONObject#NULL}. In particular, {@code get} fails if the requested index * holds the null reference, but succeeds if it holds {@code JSONObject.NULL}. * * <p>Instances of this class are not thread safe. Although this class is diff --git a/json/src/main/java/org/json/JSONObject.java b/json/src/main/java/org/json/JSONObject.java index 7ac05b1..06f7f50 100644 --- a/json/src/main/java/org/json/JSONObject.java +++ b/json/src/main/java/org/json/JSONObject.java @@ -35,14 +35,14 @@ import java.util.Map; * <li>When the requested type is a boolean, strings will be coerced * using {@link Boolean#valueOf(String)}. * <li>When the requested type is a double, other {@link Number} types will - * be coerced using {@link Number#doubleValue() doubleValue()}. Strings + * be coerced using {@link Number#doubleValue() doubleValue}. Strings * that can be coerced using {@link Double#valueOf(String)} will be. * <li>When the requested type is an int, other {@link Number} types will - * be coerced using {@link Number#intValue() intValue()}. Strings + * be coerced using {@link Number#intValue() intValue}. Strings * that can be coerced using {@link Double#valueOf(String)} will be, * and then cast to int. * <li>When the requested type is a long, other {@link Number} types will - * be coerced using {@link Number#longValue() longValue()}. Strings + * be coerced using {@link Number#longValue() longValue}. Strings * that can be coerced using {@link Double#valueOf(String)} will be, * and then cast to long. This two-step conversion is lossy for very * large values. For example, the string "9223372036854775806" yields the @@ -81,8 +81,8 @@ public class JSONObject { * A sentinel value used to explicitly define a name with no value. Unlike * {@code null}, names with this value: * <ul> - * <li>show up in the {@link #names()} array - * <li>show up in the {@link #keys()} iterator + * <li>show up in the {@link #names} array + * <li>show up in the {@link #keys} iterator * <li>return {@code true} for {@link #has(String)} * <li>do not throw on {@link #get(String)} * <li>are included in the encoded JSON string. @@ -604,7 +604,7 @@ public class JSONObject { /** * Returns an iterator of the {@code String} names in this object. The - * returned iterator supports {@link Iterator#remove() remove()}, which will + * returned iterator supports {@link Iterator#remove() remove}, which will * remove the corresponding mapping from this object. If this object is * modified after the iterator is returned, the iterator's behavior is * undefined. The order of the keys is undefined. diff --git a/json/src/main/java/org/json/JSONStringer.java b/json/src/main/java/org/json/JSONStringer.java index fa22397..3891905 100644 --- a/json/src/main/java/org/json/JSONStringer.java +++ b/json/src/main/java/org/json/JSONStringer.java @@ -23,7 +23,7 @@ import java.util.List; // Note: this class was written without inspecting the non-free org.json sourcecode. /** - * Implements {@link JSONObject#toString()} and {@link JSONArray#toString}. Most + * Implements {@link JSONObject#toString} and {@link JSONArray#toString}. Most * application developers should use those methods directly and disregard this * API. For example:<pre> * JSONObject object = ... @@ -32,9 +32,9 @@ import java.util.List; * <p>Stringers only encode well-formed JSON strings. In particular: * <ul> * <li>The stringer must have exactly one top-level array or object. - * <li>Lexical scopes must be balanced: every call to {@link #array()} must - * have a matching call to {@link #endArray()} and every call to {@link - * #object()} must have a matching call to {@link #endObject()}. + * <li>Lexical scopes must be balanced: every call to {@link #array} must + * have a matching call to {@link #endArray} and every call to {@link + * #object} must have a matching call to {@link #endObject}. * <li>Arrays may not contain keys (property names). * <li>Objects must alternate keys (property names) and values. * <li>Values are inserted with either literal {@link #value(Object) value} @@ -131,7 +131,7 @@ public class JSONStringer { /** * Begins encoding a new array. Each call to this method must be paired with - * a call to {@link #endArray()}. + * a call to {@link #endArray}. * * @return this stringer. */ @@ -150,7 +150,7 @@ public class JSONStringer { /** * Begins encoding a new object. Each call to this method must be paired - * with a call to {@link #endObject()}. + * with a call to {@link #endObject}. * * @return this stringer. */ diff --git a/json/src/main/java/org/json/JSONTokener.java b/json/src/main/java/org/json/JSONTokener.java index 3b0f593..f276173 100644 --- a/json/src/main/java/org/json/JSONTokener.java +++ b/json/src/main/java/org/json/JSONTokener.java @@ -48,7 +48,7 @@ public class JSONTokener { private final String in; /** - * The index of the next character to be returned by {@link #next()}. When + * The index of the next character to be returned by {@link #next}. When * the input is exhausted, this equals the input's length. */ private int pos; |