Skip to content

Commit 097a401

Browse files
committed
refactor: rename variable boolean 'b' to 'isEndOfPair' in CookieList.toString()
1 parent 5c4a7a1 commit 097a401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/json/CookieList.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ public static JSONObject toJSONObject(String string) throws JSONException {
4646
* @throws JSONException if a called function fails
4747
*/
4848
public static String toString(JSONObject jo) throws JSONException {
49-
boolean b = false;
49+
boolean isEndOfPair = false;
5050
final StringBuilder sb = new StringBuilder();
5151
// Don't use the new entrySet API to maintain Android support
5252
for (final String key : jo.keySet()) {
5353
final Object value = jo.opt(key);
5454
if (!JSONObject.NULL.equals(value)) {
55-
if (b) {
55+
if (isEndOfPair) {
5656
sb.append(';');
5757
}
5858
sb.append(Cookie.escape(key));
5959
sb.append("=");
6060
sb.append(Cookie.escape(value.toString()));
61-
b = true;
61+
isEndOfPair = true;
6262
}
6363
}
6464
return sb.toString();

0 commit comments

Comments
 (0)