We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 044b035 commit 223e328Copy full SHA for 223e328
JSONObject.java
@@ -194,7 +194,7 @@ public JSONObject() {
194
* @param names
195
* An array of strings.
196
*/
197
- public JSONObject(JSONObject jo, String[] names) {
+ public JSONObject(JSONObject jo, String ... names) {
198
this(names.length);
199
for (int i = 0; i < names.length; i += 1) {
200
try {
@@ -378,7 +378,7 @@ public JSONObject(Object bean) {
378
* An array of strings, the names of the fields to be obtained
379
* from the object.
380
381
- public JSONObject(Object object, String names[]) {
+ public JSONObject(Object object, String ... names) {
382
383
Class<?> c = object.getClass();
384
0 commit comments