diff --git a/src/main/java/org/json/Cookie.java b/src/main/java/org/json/Cookie.java index a43d1ed..1c5fb78 100644 --- a/src/main/java/org/json/Cookie.java +++ b/src/main/java/org/json/Cookie.java @@ -109,7 +109,7 @@ public class Cookie { // parse the remaining cookie attributes while (x.more()) { name = unescape(x.nextTo("=;")).trim().toLowerCase(Locale.ROOT); - // don't allow a cookies attributes to overwrite it's name or value. + // don't allow a cookies attributes to overwrite its name or value. if("name".equalsIgnoreCase(name)) { throw new JSONException("Illegal attribute name: 'name'"); } diff --git a/src/main/java/org/json/JSONArray.java b/src/main/java/org/json/JSONArray.java index 1e6a8a6..7e95a96 100644 --- a/src/main/java/org/json/JSONArray.java +++ b/src/main/java/org/json/JSONArray.java @@ -385,7 +385,7 @@ public class JSONArray implements Iterable { /** * Get the BigDecimal value associated with an index. If the value is float - * or double, the the {@link BigDecimal#BigDecimal(double)} constructor + * or double, the {@link BigDecimal#BigDecimal(double)} constructor * will be used. See notes on the constructor for conversion issues that * may arise. * @@ -792,7 +792,7 @@ public class JSONArray implements Iterable { * Get the optional BigDecimal value associated with an index. The * defaultValue is returned if there is no value for the index, or if the * value is not a number and cannot be converted to a number. If the value - * is float or double, the the {@link BigDecimal#BigDecimal(double)} + * is float or double, the {@link BigDecimal#BigDecimal(double)} * constructor will be used. See notes on the constructor for conversion * issues that may arise. * @@ -1157,7 +1157,7 @@ public class JSONArray implements Iterable { * The Map value. * @return this. * @throws JSONException - * If the index is negative or if the the value is an invalid + * If the index is negative or if the value is an invalid * number. * @throws NullPointerException * If a key in the map is null @@ -1180,7 +1180,7 @@ public class JSONArray implements Iterable { * String, or the JSONObject.NULL object. * @return this. * @throws JSONException - * If the index is negative or if the the value is an invalid + * If the index is negative or if the value is an invalid * number. */ public JSONArray put(int index, Object value) throws JSONException { diff --git a/src/main/java/org/json/JSONObject.java b/src/main/java/org/json/JSONObject.java index 5f7a260..761df1d 100644 --- a/src/main/java/org/json/JSONObject.java +++ b/src/main/java/org/json/JSONObject.java @@ -645,7 +645,7 @@ public class JSONObject { /** * Get the BigDecimal value associated with a key. If the value is float or - * double, the the {@link BigDecimal#BigDecimal(double)} constructor will + * double, the {@link BigDecimal#BigDecimal(double)} constructor will * be used. See notes on the constructor for conversion issues that may * arise. * @@ -1613,7 +1613,7 @@ public class JSONObject { * @param annotationClass * annotation to look for * @return the {@link Annotation} if the annotation exists on the current method - * or one of it's super class definitions + * or one of its super class definitions */ private static A getAnnotation(final Method m, final Class annotationClass) { // if we have invalid data the result is null @@ -2236,7 +2236,7 @@ public class JSONObject { // This will narrow any values to the smallest reasonable Object representation // (Integer, Long, or BigInteger) - // BigInteger down conversion: We use a similar bitLenth compare as + // BigInteger down conversion: We use a similar bitLength compare as // BigInteger#intValueExact uses. Increases GC, but objects hold // only what they need. i.e. Less runtime overhead if the value is // long lived. diff --git a/src/main/java/org/json/XML.java b/src/main/java/org/json/XML.java index 805a5c3..b7f0c8b 100644 --- a/src/main/java/org/json/XML.java +++ b/src/main/java/org/json/XML.java @@ -532,7 +532,7 @@ public class XML { // This will narrow any values to the smallest reasonable Object representation // (Integer, Long, or BigInteger) - // BigInteger down conversion: We use a similar bitLenth compare as + // BigInteger down conversion: We use a similar bitLength compare as // BigInteger#intValueExact uses. Increases GC, but objects hold // only what they need. i.e. Less runtime overhead if the value is // long lived. diff --git a/src/test/java/org/json/junit/EnumTest.java b/src/test/java/org/json/junit/EnumTest.java index ed2c87a..6867123 100644 --- a/src/test/java/org/json/junit/EnumTest.java +++ b/src/test/java/org/json/junit/EnumTest.java @@ -93,7 +93,7 @@ public class EnumTest { /** * To serialize an enum by its set of allowed values, use getNames() - * and the the JSONObject Object with names constructor. + * and the JSONObject Object with names constructor. */ @Test public void jsonObjectFromEnumWithNames() { diff --git a/src/test/java/org/json/junit/JSONObjectTest.java b/src/test/java/org/json/junit/JSONObjectTest.java index 9ddbc2e..94c3e4b 100644 --- a/src/test/java/org/json/junit/JSONObjectTest.java +++ b/src/test/java/org/json/junit/JSONObjectTest.java @@ -1678,7 +1678,7 @@ public class JSONObjectTest { // correct implementation (with change of behavior) would be: // this.put(key, new Float((Float) value + 1)); // Probably it would be better to deprecate the method and remove some day, while convenient processing the "payload" is not - // really in the the scope of a JSON-library (IMHO.) + // really in the scope of a JSON-library (IMHO.) }