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

[cleanup] Remove internally deprecated default class not used #707

Merged

Conversation

hazendaz
Copy link
Collaborator

@hazendaz hazendaz commented Jan 4, 2024

All this does is waste memory on the license-maven-plugin-fs test that uses it. Everything else uses defined properties via providers. There is no instance that a missing provider would have even had this data in fact used. So its unnecessary.

The adjustProperties fails to use what it created there so that just goes to GC.

The deprecated method only returns Collections.emptyMap().

Due to test in the license-maven-plugin-fs, keep these as default but have them do nothing as that is what they are actually doing. The adjustProperties will remain to send back emptyMap().

The close() is in fact used earlier on in main code in that it removes the IOException as none exist in all its use-cases which makes the functional usage not have to deal with non thrown exception.

Net result, no real change. Build is effectively the same, code usage would be same, the removed deprecated item isn't used in the code base and was not public to the maven plugin in that context.

All this does is waste memory on the license-maven-plugin-fs test that uses it.

The adjustProperties fails to use what it created there so that just goes to GC.

The deprecated method only returns Collections.emptyMap().

Due to test in the license-maven-plugin-fs, keep these as default but have them do nothing as that is what they are actually doing.  The adjustProperties will remain to send back emptyMap()
@hazendaz hazendaz self-assigned this Jan 4, 2024
@mathieucarbou mathieucarbou merged commit f581546 into mathieucarbou:master Jan 4, 2024
12 checks passed
@hazendaz hazendaz deleted the cleanup-internal-deprecation branch January 26, 2024 01:38
@hazendaz hazendaz modified the milestones: 4.3, 4.4 May 6, 2024
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.

2 participants