Skip to content

Commit

Permalink
Address java.util.ConcurrentModificationException failure in PackageG…
Browse files Browse the repository at this point in the history
…roup.checkName with Sigtest

Signed-off-by: Scott Marlow <smarlow@redhat.com>
  • Loading branch information
scottmarlow committed Mar 26, 2024
1 parent 5dd6216 commit 0140746
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

package com.sun.tdk.signaturetest.core;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
* <b>PackageGroup</b> is intended to maintain a list of packages
Expand Down Expand Up @@ -57,15 +57,15 @@ public class PackageGroup {
*
* @see #isSubpackagesUses
*/
private List group;
private final List group;

/**
* Create empty list of packages, and decide if subpackages
* should be implied.
*/
public PackageGroup(boolean isSubpackagesUses) {
this.isSubpackagesUses = isSubpackagesUses;
group = new ArrayList();
group = new CopyOnWriteArrayList();
}

public boolean isEmpty() {
Expand Down

0 comments on commit 0140746

Please sign in to comment.