@@ -1609,19 +1609,20 @@ protected void postResponse() {
16091609 protected String createRequestURL () {
16101610 if (!post && requestArguments != null ) {
16111611 StringBuilder b = new StringBuilder (url );
1612- Iterator e = requestArguments .keySet ().iterator ();
1613- if (e .hasNext ()) {
1612+ Iterator entries = requestArguments .entrySet ().iterator ();
1613+ if (entries .hasNext ()) {
16141614 b .append ("?" );
16151615 }
1616- while (e .hasNext ()) {
1617- String key = (String ) e .next ();
1618- Object requestVal = requestArguments .get (key );
1616+ while (entries .hasNext ()) {
1617+ Map .Entry entry = (Map .Entry ) entries .next ();
1618+ String key = (String ) entry .getKey ();
1619+ Object requestVal = entry .getValue ();
16191620 if (requestVal instanceof String ) {
16201621 String value = (String ) requestVal ;
16211622 b .append (key );
16221623 b .append ("=" );
16231624 b .append (value );
1624- if (e .hasNext ()) {
1625+ if (entries .hasNext ()) {
16251626 b .append ("&" );
16261627 }
16271628 continue ;
@@ -1637,7 +1638,7 @@ protected String createRequestURL() {
16371638 b .append (key );
16381639 b .append ("=" );
16391640 b .append (val [vlen - 1 ]);
1640- if (e .hasNext ()) {
1641+ if (entries .hasNext ()) {
16411642 b .append ("&" );
16421643 }
16431644 }
@@ -1655,16 +1656,17 @@ protected String createRequestURL() {
16551656 protected void buildRequestBody (OutputStream os ) throws IOException {
16561657 if (post && requestArguments != null ) {
16571658 StringBuilder val = new StringBuilder ();
1658- Iterator e = requestArguments .keySet ().iterator ();
1659- while (e .hasNext ()) {
1660- String key = (String ) e .next ();
1661- Object requestVal = requestArguments .get (key );
1659+ Iterator entries = requestArguments .entrySet ().iterator ();
1660+ while (entries .hasNext ()) {
1661+ Map .Entry entry = (Map .Entry ) entries .next ();
1662+ String key = (String ) entry .getKey ();
1663+ Object requestVal = entry .getValue ();
16621664 if (requestVal instanceof String ) {
16631665 String value = (String ) requestVal ;
16641666 val .append (key );
16651667 val .append ("=" );
16661668 val .append (value );
1667- if (e .hasNext ()) {
1669+ if (entries .hasNext ()) {
16681670 val .append ("&" );
16691671 }
16701672 continue ;
@@ -1680,7 +1682,7 @@ protected void buildRequestBody(OutputStream os) throws IOException {
16801682 val .append (key );
16811683 val .append ("=" );
16821684 val .append (valArray [vlen - 1 ]);
1683- if (e .hasNext ()) {
1685+ if (entries .hasNext ()) {
16841686 val .append ("&" );
16851687 }
16861688 }
@@ -2314,10 +2316,11 @@ public boolean equals(Object o) {
23142316 if (r .url == url ) {
23152317 if (requestArguments != null ) {
23162318 if (r .requestArguments != null && requestArguments .size () == r .requestArguments .size ()) {
2317- Iterator e = requestArguments .keySet ().iterator ();
2318- while (e .hasNext ()) {
2319- Object key = e .next ();
2320- Object value = requestArguments .get (key );
2319+ Iterator entries = requestArguments .entrySet ().iterator ();
2320+ while (entries .hasNext ()) {
2321+ Map .Entry entry = (Map .Entry ) entries .next ();
2322+ Object key = entry .getKey ();
2323+ Object value = entry .getValue ();
23212324 Object otherValue = r .requestArguments .get (key );
23222325 if (!value .equals (otherValue )) {
23232326 return false ;
0 commit comments