jakartaee / jakartaee/messaging

add generics to methods currently returning raw types

Open
#108 5 comments 0 reactions 0 assignees View on GitHub
enumeration generics jms21-forreview-minor Priority: Major Type: Improvement
Dominant language
Java
Stars
49
Forks
34
PR merge metrics
No merged PRs in 30d

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
* javax.jms.Message#getPropertyNames() should return Enumeration
* javax.jms.JMSProducer#getPropertyNames() should return Enumeration
* javax.jms.MapMessage#getMapNames() should return Enumeration
* javax.jms.ConnectionMetaData#getJMSXPropertyNames() should return Enumeration
#### Affected Versions
[2.0PD]

Contributor guide

Open the contributing guide

Research direction

Start by locating the five listed JMS API method declarations: QueueBrowser.getEnumeration(), Message#getPropertyNames(), JMSProducer#getPropertyNames(), MapMessage#getMapNames(), and ConnectionMetaData#getJMSXPropertyNames(). Review the surrounding API definitions and build or compatibility checks. Done means all five declarations expose the specified Enumeration element types consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.