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

Change Icon.renderIcon to accept Map<String, ? extends Object> attribute map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0.2-core, 1.2.2-core
    • 1.0.3-core, 1.2.3-core
    • None
    • None

    Description

      Changing the Icon.renderIcon method signature from

      abstract public void renderIcon(
      FacesContext context,
      RenderingContext arc,
      Map<String, Object> attrs
      ) throws IOException;

      to

      abstract public void renderIcon(
      FacesContext context,
      RenderingContext arc,
      Map<String, ? extends Object> attrs
      ) throws IOException;

      grant the ability to call the method with, for example, the result from Collections.singletonMap receiving two String. Furthermore, this change should not impact backward compatibility since the new signature is a generalization of the former one.

      Attachments

        1. TRINIDAD-716.patch
          7 kB
          Simon Lessard

        Activity

          People

            lothian Simon Lessard
            lothian Simon Lessard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: