Some generifications overly restrictive

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: other-libs
    • b59
    • generic
    • generic

      While fixing 5054615 et al. I noticed two methods whose generic types are
      overly restrictive:

          java.security.cert.X509CRLSelector.setIssuerNames(Collection<Object>)
          java.text.AttributedString.addAttributes(Map<Attribute,Object>, int, int)

      The Object types in these signatures should be replaced with a wildcard so that
      collections and maps of more specific types can be used.

      -- ###@###.### 2004/7/13

            Assignee:
            Mark Reinhold
            Reporter:
            Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: