Enumeration eMisc = mech.getMisc(); while (eMisc.hasMoreElements()) { Mounted mounted = (Mounted)eMisc.nextElement();
for (Mounted mounted: mech.getMisc()) {
    private String getMisc() {        StringBuffer sMisc = new StringBuffer();        Enumeration eMisc = mech.getMisc();        while (eMisc.hasMoreElements()) {            Mounted mounted = (Mounted)eMisc.nextElement();            String name = mounted.getName();            if (name.indexOf("Jump Jet") != -1 //$NON-NLS-1$                     ||(name.indexOf("CASE") != -1 && mech.isClan()) //$NON-NLS-1$                    || name.indexOf("Heat Sink") != -1 //$NON-NLS-1$                    || name.indexOf("Endo Steel") != -1 //$NON-NLS-1$                    || name.indexOf("Ferro-Fibrous") != -1) { //$NON-NLS-1$                // These items are displayed elsewhere, so skip them here.                continue;            }            sMisc.append( mounted.getDesc() )                .append( "  [" ) //$NON-NLS-1$                .append( mech.getLocationAbbr(mounted.getLocation()) )                .append( "]" ); //$NON-NLS-1$            if (mech.isClan() &&                 mounted.getType().getInternalName().substring(0,2).equals("IS")) { //$NON-NLS-1$                sMisc.append(Messages.getString("MechView.IS")); //$NON-NLS-1$            }            if (!mech.isClan() &&                mounted.getType().getInternalName().substring(0,2).equals("CL")) { //$NON-NLS-1$                sMisc.append(Messages.getString("MechView.Clan")); //$NON-NLS-1$            }            sMisc.append("\n"); //$NON-NLS-1$        }        String capacity = mech.getUnusedString();        if ( capacity != null && capacity.length() > 0 ) {            sMisc.append( Messages.getString("MechView.CarringCapacity") ) //$NON-NLS-1$                .append( capacity )                .append( "\n" ); //$NON-NLS-1$        }        return sMisc.toString();    }