for (Enumeration i = entity.getWeapons(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement();
for (Mounted mounted : entity.getWeaponList()) {
    private void resolveUnjam(Entity entity) {        Report r;        final int TN = entity.getCrew().getGunnery() + 3;        r = new Report(3025);        r.subject = entity.getId();        r.addDesc(entity);        addReport(r);        for (Enumeration i = entity.getWeapons(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if(mounted.isJammed()) {                WeaponType wtype = (WeaponType)mounted.getType();                if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) {                    int roll = Compute.d6(2);                    r = new Report(3030);                    r.indent();                    r.subject = entity.getId();                    r.add(wtype.getName());                    r.add(TN);                    r.add(roll);                    if(roll >= TN) {                        r.choose(true);                        mounted.setJammed(false);                    } else {                        r.choose(false);                    }                    addReport(r);                }            }        }    }