Vector vMechs = new Vector();
Vector<MechSummary> vMechs = new Vector<MechSummary>();
    private void filterMechs(boolean calledByAdvancedSearch) {        Vector vMechs = new Vector();        int nClass = m_chWeightClass.getSelectedIndex();        int nType = m_chType.getSelectedIndex();        int nUnitType = m_chUnitType.getSelectedIndex();        MechSummary[] mechs = MechSummaryCache.getInstance().getAllMechs();        if ( mechs == null ) {            System.err.println( "No units to filter!" ); //$NON-NLS-1$            return;        }        for (int x = 0; x < mechs.length; x++) {            if ( /* Weight */                (nClass == EntityWeightClass.SIZE || mechs[x].getWeightClass() == nClass)                && /* Technology Level */                ((nType == TechConstants.T_ALL)                    || (nType == mechs[x].getType())                    || ((nType == TechConstants.T_LEVEL_2_ALL)                        && ((mechs[x].getType() == TechConstants.T_IS_LEVEL_1)                        || (mechs[x].getType() == TechConstants.T_IS_LEVEL_2)                        || (mechs[x].getType() == TechConstants.T_CLAN_LEVEL_2)))                    || ((nType == TechConstants.T_IS_LEVEL_2_ALL)                        && ((mechs[x].getType() == TechConstants.T_IS_LEVEL_1)                        || (mechs[x].getType() == TechConstants.T_IS_LEVEL_2))))                && /* Unit Type (Mek, Infantry, etc.) */                ( nUnitType == UnitType.SIZE ||                  mechs[x].getUnitType().equals(UnitType.getTypeName(nUnitType)))                && /*canon required*/ (!m_client.game.getOptions().booleanOption("canon_only") || mechs[x].isCanon())) {                    vMechs.addElement(mechs[x]);                }        }        m_mechsCurrent = new MechSummary[vMechs.size()];        vMechs.copyInto(m_mechsCurrent);        m_count = vMechs.size();        if (!calledByAdvancedSearch            && (m_old_nType != nType || m_old_nUnitType != nUnitType)) {            populateWeaponsAndEquipmentChoices();        }        m_old_nType = nType;        m_old_nUnitType = nUnitType;        sortMechs();    }