diff --git a/JSONObject.java b/JSONObject.java
index 69c6993..ef2413a 100644
--- a/JSONObject.java
+++ b/JSONObject.java
@@ -277,16 +277,19 @@ public class JSONObject {
* "is"
followed by an uppercase letter, the method is invoked,
* and a key and the value returned from the getter method are put into the
* new JSONObject.
- *
+ *
* The key is formed by removing the "get"
or "is"
* prefix. If the second remaining character is not upper case, then the
* first character is converted to lower case.
- *
+ *
* For example, if an object has a method named "getName"
, and
* if the result of calling object.getName()
is
* "Larry Fine"
, then the JSONObject will contain
* "name": "Larry Fine"
.
- *
+ *
+ * Methods that return void
as well as static
+ * methods are ignored.
+ *
* @param bean
* An object that has getter methods that should be used to make
* a JSONObject.
@@ -1389,6 +1392,15 @@ public class JSONObject {
return NULL.equals(object) ? defaultValue : object.toString();
}
+ /**
+ * Populates the internal map of the JSONObject with the bean properties.
+ * The bean can not be recursive.
+ *
+ * @see JSONObject#JSONObject(Object)
+ *
+ * @param bean
+ * the bean
+ */
private void populateMap(Object bean) {
Class> klass = bean.getClass();