Enumeration eW = getWeapons(); while (eW.hasMoreElements()) { Mounted mounted = (Mounted)eW.nextElement();
for (Mounted mounted : getWeaponList()) {
    public int getVibroClawDamage() {        if (vibroClawDamage < 0) {            vibroClawDamage = 0;            Enumeration eW = getWeapons();            while (eW.hasMoreElements()) {                Mounted mounted = (Mounted)eW.nextElement();                if (mounted.getType().hasFlag(WeaponType.F_BOOST_SWARM)) {                    vibroClawDamage = ((WeaponType)(mounted.getType())).getRackSize();                    break;                }            }        }        return vibroClawDamage;    }