Skip to content

[MRESOLVER-540] TransferResource can reveal more about resource - #474

Merged
cstamas merged 4 commits into
apache:masterfrom
cstamas:MRESOLVER-540
Apr 18, 2024
Merged

cstamas merged 4 commits into
apache:masterfrom
cstamas:MRESOLVER-540

Conversation

@cstamas

@cstamas cstamas commented Apr 18, 2024 •

Copy link
Copy Markdown
Member

@cstamas cstamas self-assigned this Apr 18, 2024
@cstamas

cstamas commented Apr 18, 2024

Copy link
Copy Markdown
Member Author

Main inspiration is to make stunts like these not required: apache/maven-mvnd#930

*
* @since 2.0.0
*/
public enum ResourceType {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if that one is really needed, as one could use instanceof on the resource (and a cast will be needed anyway)...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I kinda agree with you, moreover as these events are emitted ONLY by connector. For example, Transport API of Maven4 completely circumvents connector, and goes directly to transport... so yeah, due this (connector) type can really only be Artifact or Metadata

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure about the enum...

@cstamas

cstamas commented Apr 18, 2024

Copy link
Copy Markdown
Member Author

Will remove/simplify it

@cstamas
cstamas requested a review from gnodet April 18, 2024 17:09
@cstamas

cstamas commented Apr 18, 2024 •

Copy link
Copy Markdown
Member Author

Simplified, removed cruft and is now simple and nice. @gnodet pls review

@cstamas
cstamas merged commit 8b0d417 into apache:master Apr 18, 2024
@cstamas
cstamas deleted the MRESOLVER-540 branch April 18, 2024 17:38
@jira-importer

Copy link
Copy Markdown

Resolve #1200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants