Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7108

Use wildcard in methods returning keys

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 9.0.0.Beta1
    • None
    • Core
    • None

    Description

      When a command uses generics (that's the case of functional commands), it stores keys in Collection<? extends K>. That does not work well with getAffectedKeys() returning Set<Object> - besides Collection/Set the generic type also cannot match (because returning Set<Object> means that you can theoretically insert any Object). Changing that to wildcard deals with this and makes the collection effectively read-only.

      Attachments

        Activity

          People

            rvansa1@redhat.com Radim Vansa (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: