We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4a7a1 commit 097a401Copy full SHA for 097a401
1 file changed
src/main/java/org/json/CookieList.java
@@ -46,19 +46,19 @@ public static JSONObject toJSONObject(String string) throws JSONException {
46
* @throws JSONException if a called function fails
47
*/
48
public static String toString(JSONObject jo) throws JSONException {
49
- boolean b = false;
+ boolean isEndOfPair = false;
50
final StringBuilder sb = new StringBuilder();
51
// Don't use the new entrySet API to maintain Android support
52
for (final String key : jo.keySet()) {
53
final Object value = jo.opt(key);
54
if (!JSONObject.NULL.equals(value)) {
55
- if (b) {
+ if (isEndOfPair) {
56
sb.append(';');
57
}
58
sb.append(Cookie.escape(key));
59
sb.append("=");
60
sb.append(Cookie.escape(value.toString()));
61
- b = true;
+ isEndOfPair = true;
62
63
64
return sb.toString();
0 commit comments