-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NIFI-12201 - Deprecation marking for nifi-toolkit-tls in NiFi 1.x #7880
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @greyp9, can we use the Deprecation Logger instead of System.out
for noting the pending removal of this utility?
nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/TlsToolkitMain.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for introducing this message @greyp9, this approach looks good under the circumstances.
@ChrisSamo632 For other components, the DeprecationLogger and the Deprecated annotation make sense, but it does seem necessary in this particular scenario. The TlsToolkitMain
is a command class that gets called through wrapping scripts, as opposed to a class that other components use. From that perspective, using DeprecationLogger does not add much, and it requires a configured logger implementation. For the same reasons, the Deprecated annotation does not provide a warning for end users of the TLS Toolkit, as it is developer-facing.
With that background, this approach seems sufficient to me. What do you think?
That's probably fair enough, thanks for the explanation @exceptionfactory I wonder whether this should be a |
Thanks much for the input. I'm switching it over to |
Thanks for the update, LGTM 👍 Will merge tomorrow (if I'm not beaten to it), when hopefully the build failures will have been fixed on the support branch (unrelated to this change) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the adjustments @greyp9, and thanks for the review @ChrisSamo632! The build failures are unrelated, and now resolved in a recent commit. +1 merging
This closes #7880 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This has been merged to |
Summary
NIFI-00000
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation