-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
fix issue 1968 and correct visitor pattern code #1990
Conversation
this PR helps for solve #1968 |
Kudos, SonarCloud Quality Gate passed! |
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.
Thank you so much for your contributions!!
Please address the review comments and possibly eliminate the sonar issues as reported in the comment and make it a spotless PR.
Looking forward to this!
visitor/src/main/java/com/iluwatar/visitor/CommanderVisitor.java
Outdated
Show resolved
Hide resolved
visitor/src/main/java/com/iluwatar/visitor/SergeantVisitor.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
@ohbus I have remove all the comment, thanks a lot! |
fix issue 1968 and correct visitor pattern code
Modified issue with visitor mode code, changed different method name to method reload, fixed issue1968.
Pull request description
The main modification of the method in the class is visit, which is accessed only by different parameter types, eliminating some errors and simplifying code writing, in line with the pattern requirements.