Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1732

Code Cleanup: Move to using generics in the trinidad-maven project

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.12-plugins
    • 1.2.13-plugins
    • Documentation
    • None

    Description

      As a code clean-up task, move to using Generics in the trinidad-maven project, so e.g. instead of:
      Iterator renderkits = facesConfig.renderKits();
      while (renderkits.hasNext())
      {
      RenderKitBean renderkit = (RenderKitBean) renderkits.next();

      change the code to:
      Iterator<RenderKitBean> renderkits = facesConfig.renderKits();
      while (renderkits.hasNext())
      {
      RenderKitBean renderkit = renderkits.next();

      As part of this changeover I found one bug in ComponentBean.java where it seems the code was improperly casting to an EventBean when really the object was an EventRefBean.

      Attachments

        1. patchJIRA1732_trunk.patch
          46 kB
          Maria Kaval

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            mariakaval Maria Kaval
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: