Skip to content

Commit

Permalink
updates javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
John J. Aylward committed Jul 8, 2017
1 parent 643b251 commit a8e0c9e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,20 @@ public JSONObject(Map<?, ?> m) {
* <code>"is"</code> 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.
*
* <p>
* The key is formed by removing the <code>"get"</code> or <code>"is"</code>
* prefix. If the second remaining character is not upper case, then the
* first character is converted to lower case.
*
* </p><p>
* For example, if an object has a method named <code>"getName"</code>, and
* if the result of calling <code>object.getName()</code> is
* <code>"Larry Fine"</code>, then the JSONObject will contain
* <code>"name": "Larry Fine"</code>.
*
* </p><p>
* Methods that return <code>void</code> as well as <code>static</code>
* methods are ignored.
* </p>
*
* @param bean
* An object that has getter methods that should be used to make
* a JSONObject.
Expand Down

0 comments on commit a8e0c9e

Please sign in to comment.