jms-spec
  1. jms-spec
  2. JMS_SPEC-108

add generics to methods currently returning raw types

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0PD
    • Fix Version/s: None
    • Labels:
      None

      Description

      There are several methods that return raw java.util.Enumeration. Adding a type parameter would return the potential for misuse, produce cleaner and safer code and give a better development experience since you don't need to look up the the JavaDoc, the IDE automatically inserts the right type.

      The affected methods are:

      • javax.jms.QueueBrowser.getEnumeration() should return Enumeration<Message>
      • javax.jms.Message#getPropertyNames() should return Enumeration<String>
      • javax.jms.JMSProducer#getPropertyNames() should return Enumeration<String>
      • javax.jms.MapMessage#getMapNames() should return Enumeration<String>
      • javax.jms.ConnectionMetaData#getJMSXPropertyNames() should return Enumeration<String>

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            braghest
          • Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: