Vector newModes = new Vector(modes.length);
Vector<EquipmentMode> newModes = new Vector<EquipmentMode>(modes.length);
    protected void setModes(String[] modes) {        megamek.debug.Assert.assertTrue(modes != null && modes.length >= 0,                 "List of modes must not be null or empty");        Vector newModes = new Vector(modes.length);        for (int i = 0 ,l = modes.length; i < l; i++) {            newModes.addElement(EquipmentMode.getMode(modes[i]));        }        this.modes = newModes;    }