Skip to content

Commit

Permalink
Change keys List from ArrayList to thread-safe Vector
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Jan 28, 2025
1 parent 459d935 commit 66ad241
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions megamek/src/megamek/common/battlevalue/BVCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@
import static megamek.common.AmmoType.T_AMS;
import static megamek.common.AmmoType.T_APDS;

import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.*;
import java.util.function.Predicate;

import megamek.client.ui.swing.calculationReport.CalculationReport;
Expand Down Expand Up @@ -61,7 +56,7 @@ public abstract class BVCalculator {
protected boolean ignoreC3;
protected boolean ignoreSkill;
protected Map<String, Double> ammoMap = new HashMap<>();
protected List<String> keys = new ArrayList<>();
protected List<String> keys = new Vector<>();
protected Map<String, String> names = new HashMap<>();
protected Map<String, Double> weaponsForExcessiveAmmo = new HashMap<>();
protected int runMP;
Expand Down

0 comments on commit 66ad241

Please sign in to comment.