File tree 1 file changed +2
-5
lines changed
app/src/main/java/fr/free/nrw/commons/contributions
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,9 @@ ContentValues toContentValues(Contribution contribution) {
128
128
*/
129
129
130
130
private String convertMapToString (HashMap <String , String > captions ) {
131
- Iterator iter = (Iterator ) captions .keySet ().iterator ();
132
131
StringBuilder captionListString = new StringBuilder ();
133
- while (iter .hasNext ()) {
134
- Map .Entry entry = (Map .Entry ) iter .next ();
135
- String individualDescription = String .format ("{{%s|1=%s}}" , entry .getKey (),
136
- entry .getValue ());
132
+ for (Map .Entry <String , String > entry : captions .entrySet ()) {
133
+ String individualDescription = String .format ("{{%s|1=%s}}" , entry .getKey (), entry .getValue ());
137
134
captionListString .append (individualDescription );
138
135
}
139
136
return String .valueOf (captionListString );
You can’t perform that action at this time.
0 commit comments