Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFCORE-7114] Deprecate use of ModuleIdentifier in ModuleDefinition #6302

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

bstansberry
Copy link
Contributor

@wildfly-ci

This comment was marked as off-topic.

}

/** @deprecated use {@link #getModuleName()} */
@Deprecated(forRemoval = true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a rule of thumb, we are always asking for the since attribute on all @deprecated annotations so we can make an idea without looking at the Git history when it was deprecated.

This can be done later though

Comment on lines +49 to +51
public String getModuleName() {
return moduleIdentifier.toString(); // inefficient but this is unused. When we switch the use to this we'll store the string.
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if getModuleName is what we would want. The ModuleIdentifier is composed by name and slot attributes. So getModuleName() returning the result of moduleIdentifier.toString() maybe is not what we want since it could drive into confusion since someone could be expecting to get just the ModuleIdentifier name.

As additional detail, the JBoss Modules documentation still makes a distinction about what a module name is (https://jboss-modules.github.io/jboss-modules/manual/#names) and what are module identifiers https://jboss-modules.github.io/jboss-modules/manual/#slots

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getModuleIdentifier() is already taken, so ....

Comment on lines +49 to +51
public String getModuleName() {
return moduleIdentifier.toString(); // inefficient but this is unused. When we switch the use to this we'll store the string.
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getModuleIdentifier() is already taken, so ....

@yersan yersan added the ready-for-merge This PR is ready to be merged and fulfills all requirements label Dec 23, 2024
@yersan yersan merged commit 60a3f32 into wildfly:main Dec 23, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to be merged and fulfills all requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants