@@ -254,7 +254,7 @@ public double getDouble(int index) throws JSONException {
254254 * The type of enum to retrieve.
255255 * @param index
256256 * The index must be between 0 and length() - 1.
257- * @return The enum value.
257+ * @return The enum value at the index location
258258 * @throws JSONException
259259 * if the key is not found or if the value cannot be converted
260260 * to an enum.
@@ -563,7 +563,7 @@ public int optInt(int index, int defaultValue) {
563563 * The type of enum to retrieve.
564564 * @param index
565565 * The index must be between 0 and length() - 1.
566- * @return The enum value or null if not found
566+ * @return The enum value at the index location or null if not found
567567 */
568568 public <E extends Enum <E >> E optEnum (Class <E > clazz , int index ) {
569569 return this .optEnum (clazz , index , null );
@@ -578,8 +578,8 @@ public <E extends Enum<E>> E optEnum(Class<E> clazz, int index) {
578578 * The index must be between 0 and length() - 1.
579579 * @param defaultValue
580580 * The default in case the value is not found
581- * @return The enum value or defaultValue if the value is not found or
582- * cannot be assigned to clazz
581+ * @return The enum value at the index location or defaultValue if
582+ * the value is not found or cannot be assigned to clazz
583583 */
584584 public <E extends Enum <E >> E optEnum (Class <E > clazz , int index , E defaultValue ) {
585585 try {
0 commit comments