Skip to content

Commit ab59365

Browse files
committed
switch to forEach
1 parent 3bc125d commit ab59365

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

android/src/main/java/io/fullstack/firestack/FirestackAnalytics.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ private Bundle makeEventBundle(final String name, final Map<String, Object> map)
202202
bundle.putString(FirebaseAnalytics.Param.FLIGHT_NUMBER, val);
203203
}
204204

205-
Iterator<Map.Entry<String, Object>> entries = map.entrySet().iterator();
206-
while (entries.hasNext()) {
207-
Map.Entry<String, Object> entry = entries.next();
205+
for (Map.Entry<String, Object> entry : map.entrySet()) {
208206
if (bundle.getBundle(entry.getKey()) == null) {
209207
bundle.putString(entry.getKey(), entry.getValue().toString());
210208
}

0 commit comments

Comments
 (0)