From 2a4b4a667e0539bc6e6af09251254f7b4ec9c970 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 31 Aug 2017 16:15:31 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 97ca2b7..a25085f 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -2491,14 +2491,26 @@ public class TestingList extends Panel { while (it.hasNext()) { Map.Entry pair = (Map.Entry)it.next(); System.out.println(pair.getKey() + " = " + pair.getValue()); - it.remove(); // avoids a ConcurrentModificationException + Iterator subit = deviceParams.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry subpair = (Map.Entry)subit.next(); + System.out.println(subpair.getKey() + " = " + subpair.getValue()); + subit.remove(); // avoids a ConcurrentModificationException + } + it.remove(); // avoids a ConcurrentModificationException } it = testParams.entrySet().iterator(); while (it.hasNext()) { Map.Entry pair = (Map.Entry)it.next(); System.out.println(pair.getKey() + " = " + pair.getValue()); - it.remove(); // avoids a ConcurrentModificationException - } + Iterator subit = deviceParams.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry subpair = (Map.Entry)subit.next(); + System.out.println(subpair.getKey() + " = " + subpair.getValue()); + subit.remove(); // avoids a ConcurrentModificationException + } + it.remove(); // avoids a ConcurrentModificationException + } return testParams; }