@@ -240,7 +240,7 @@ public JSONObject(JSONTokener x) throws JSONException {
240240 public JSONObject (Map <String , Object > map ) {
241241 this .map = new HashMap <String , Object >();
242242 if (map != null ) {
243- for ( Map .Entry <String , Object > e : this . map .entrySet () ) {
243+ for ( Map .Entry <String , Object > e : map .entrySet () ) {
244244 Object value = e .getValue ();
245245 if (value != null ) {
246246 this .map .put (e .getKey (), wrap (value ));
@@ -1415,7 +1415,7 @@ public static String valueToString(Object value) throws JSONException {
14151415 }
14161416 if (value instanceof Map ) {
14171417 @ SuppressWarnings ("unchecked" )
1418- Map <String , Object > mapValue = (Map <String , Object >)value ;
1418+ final Map <String , Object > mapValue = (Map <String , Object >)value ;
14191419 return new JSONObject (mapValue ).toString ();
14201420 }
14211421 if (value instanceof Collection ) {
@@ -1462,7 +1462,7 @@ public static Object wrap(Object object) {
14621462 }
14631463 if (object instanceof Map ) {
14641464 @ SuppressWarnings ("unchecked" )
1465- Map <String , Object > mapObject = (Map <String , Object >)object ;
1465+ final Map <String , Object > mapObject = (Map <String , Object >)object ;
14661466 return new JSONObject (mapObject );
14671467 }
14681468 Package objectPackage = object .getClass ().getPackage ();
@@ -1507,7 +1507,7 @@ static final Writer writeValue(Writer writer, Object value,
15071507 ((JSONArray ) value ).write (writer , indentFactor , indent );
15081508 } else if (value instanceof Map ) {
15091509 @ SuppressWarnings ("unchecked" )
1510- final Map <String , Object > mapValue = (Map <String , Object >) value ;
1510+ final Map <String , Object > mapValue = (Map <String , Object >) value ;
15111511 new JSONObject (mapValue ).write (writer , indentFactor , indent );
15121512 } else if (value instanceof Collection ) {
15131513 new JSONArray ((Collection <?>) value ).write (writer , indentFactor ,
0 commit comments